Installation
Install RN Neo package to your React Native project
From
v4 of react-native-reanimated, you must also
install react-native-worklets as a peer dependency.- Run the following commands in your project root directory:
pnpm add rn-neo react-native-reanimated react-native-workletsExpo
- If you are using Expo, you need to add the following to your
app.jsonfile:
{
"expo": {
"plugins": [
// ...other plugins,
"rn-neo"
]
}
}- Then run
expo prebuildto generate the native code.
React Native CLI
- If you are using React Native CLI project, you need to run the following command in your terminal:
npx react-native-asset- This will link necessary assets for RN Neo theme.