rive-react-native
rive-react-native copied to clipboard
Upgrade to React Native 0.72.17
Before we start upgrading to React Native 0.73.x and 0.74.x, we want to get everything upgrades to the latest version of 0.72.x. This PR:
- Upgrade React Native from
0.72.7to0.72.17based on the upgrade helper. - Upgrade all of our dev dependencies as high as they can go while still supporting node 16.
- Add a workaround for the Flipper issue described here. This is a temporary fix that we can remove when we upgrade React Native to
0.74.x. - Add tests so that
yarn testno longer fails.
Testing
Note: This'll only work on projects using RN <= 0.72
Run yarn test
- Remove
node_modulesin the parent director and insideexamples/ - Remove
/examples/ios/Pods - Run
yarn bootstrap - Open an Android emulator in Android Studio (any phone)
- Run
yarn example start - When Expo is ready, click
ito start an iOS simulator and/orato start an Android
You might have an issue where Expo tries to run on a previously used device, rather than a Simulator. If that happens, run yarn example ios --simulator="iPhone 15" (or whatever device).
To test on a real device, open example/ios/RiveReactNativeExample.xcworkspace in XCode.