React Native Skia brings the Skia Graphics Library to React Native. Skia serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Mozilla Firefox, Firefox OS, and many other products.
Checkout the full documentation here.
yarn add @shopify/react-native-skia
Or using npm:
npm install @shopify/react-native-skia
Run pod install
on the ios/
directory.
Version compatibility:
react-native@>=0.66
is required.
Currently, you will need Android NDK to be installed.
If you have Android Studio installed, make sure $ANDROID_NDK
is available.
ANDROID_NDK=/Users/username/Library/Android/sdk/ndk-bundle
for instance.
If the NDK is not installed, you can install it via Android Studio by going to the menu File > Project Structure
And then the SDK Location section. It will show you the NDK path, or the option to download it if you don't have it installed.
We have an example project you can play with here.
yarn
cd package && yarn && cd ..
cd example && yarn && yarn start
To run the example project on iOS, you will need to run pod install
, and on Android, you will also need Android NDK to be installed (see here).