rive-react-native icon indicating copy to clipboard operation
rive-react-native copied to clipboard

Upgrade to React Native 0.72.17

Open lancesnider opened this issue 1 year ago • 0 comments

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.7 to 0.72.17 based 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 test no longer fails.

Testing

Note: This'll only work on projects using RN <= 0.72

Run yarn test

  1. Remove node_modules in the parent director and inside examples/
  2. Remove /examples/ios/Pods
  3. Run yarn bootstrap
  4. Open an Android emulator in Android Studio (any phone)
  5. Run yarn example start
  6. When Expo is ready, click i to start an iOS simulator and/or a to 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.

lancesnider avatar Sep 25 '24 01:09 lancesnider