0.70.0-rc.2
Pre-release
Pre-release
To try it, run:
npx react-native init RN070RC2 --version 0.70.0-rc.2
-
You can participate in the conversation on the status of this release in the working group
-
To help you upgrade to this version, you can use the upgrade helper ⚛️
-
The full list of changes in release can read in the changelog PR
Help us testing 🧪
We need your help testing one feature in particular with this RC (autolinking of TurboModules from libraries)! Here is what you have to do:
- generate a new app (as per command above)
- turn on the new architecture:
- iOS
cd ios
bundle install && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
(orRCT_NEW_ARCH_ENABLED=1 pod install
)cd ..
yarn ios
- Android
- go into
gradle.properties
- switch the flag newArchEnabled to
true
yarn android
- go into
- verify that the app is running new arch by checking the Metro log for something along the lines of
LOG Running "RN070RC1" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
- iOS
- add a library that has the new TM implementation (such as https://github.com/th3rdwave/react-native-safe-area-context) via
yarn add <lib>
- rerun the app again (remember to do a new
RCT_NEW_ARCH_ENABLED=1 pod install
for iOS), verify that the lib added works correctly - check in the file
android/app/build/generated/rncli/src/main/jni/Android-rncli.mk
that there's a reference to the library added, something along the lines ofinclude <path>/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/Android.mk import-codegen-modules := \ libreact_codegen_safeareacontext
- let us know how it went by posting a comment in the working group discussion! Please specify with system you tried it on (ex. macos, windows).
Bonus points: It would be even better if you could swap things around: instead of using a fresh new app, use a more complex one - or use a different library that is already leveraging the new architecture!