Getting Started
Installation
Step 1: Install the packages
- Install rn-nativeflow
- npm
- yarn
npm install rn-nativeflow
npm install rn-nativeflow
- Install react native reanimated
- npm
- yarn
npm install react-native-reanimated
yarn add react-native-reanimated
- Install react native gesture handler
- npm
- yarn
npm install react-native-gesture-handler
yarn add react-native-gesture-handler
Step 2: Add Reanimated's babel plugin
Add react-native-reanimated/plugin
plugin to your babel.config.js
babel.config.js
module.exports = {
presets: [
... // don't add it here :)
],
plugins: [
...
'react-native-reanimated/plugin',
],
};
Step 3: Clear Metro bundler cache (recommended)
- expo
- npm
- yarn
npx expo start -c
npm start -- --reset-cache
yarn start --reset-cache