Home > Software design >  Which C /Java graphics library does React Native use?
Which C /Java graphics library does React Native use?

Time:06-17

Since Flutter is using Skia for graphics, I was wondering what the equivalent for that would be for React Native.

I managed to find an android.graphics.Canvas class in the React Native source code but that's about it. Finding it a bit harder to wrap my head around the React Native engine as opposed to the Flutter engine.

CodePudding user response:

Contrary to Flutter, React Native doesn't render native UI elements on its own.

View and Text, which are building blocks for React Native UI alter the corresponding OS UI elements, and rendering is handled by Native code via React Native Bridge.

This architecture makes React Native not suitable for graphic-intensive apps like drawing or games.

Sponsored by Shopify, William Candillon and Christian Falch are bringing Skia to React Native - https://shopify.github.io/react-native-skia/

  • Related