3 ms·
Another example of this is React-Native-Skia: https://shopify.github.io/react-native-skia/docs/getting-started/hello-world https://shopify.github.io/react-nativ
by cyberax 2y ago
Another example of this is React-Native-Skia: https://shopify.github.io/react-native-skia/docs/getting-started/hello-world https://shopify.github.io/react-native-skia/docs/getting-sta...
It uses a virtual DOM to diff the desired state and the current one: https://shopify.github.io/react-native-skia/docs/canvas/contexts https://shopify.github.io/react-native-skia/docs/canvas/cont...
If you're interested how it's implemented, that's the source code: https://github.com/Shopify/react-native-skia/blob/main/packages/skia/src/sksg/Reconciler.ts https://github.com/Shopify/react-native-skia/blob/main/packa...