React Native: v0.70.0-rc.2 Release

Release date:
August 4, 2022
Previous version:
v0.70.0-rc.1 (released July 28, 2022)
Magnitude:
192 Diff Delta
Contributors:
9 total committers
Data confidence:
Commits:

Top Contributors in v0.70.0-rc.2

cortinico
SparshaSaha
okwasniewski
distiller-1ec3
huntie
cipolleschi
kelset
leotm
thymikee

Directory Browser for v0.70.0-rc.2

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

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:

  1. generate a new app (as per command above)
  2. turn on the new architecture:
    1. iOS
      1. cd ios
      2. bundle install && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install(or RCT_NEW_ARCH_ENABLED=1 pod install)
      3. cd ..
      4. yarn ios
    2. Android
      1. go into gradle.properties
      2. switch the flag newArchEnabled to true
      3. yarn android
    3. 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}
  3. add a library that has the new TM implementation (such as https://github.com/th3rdwave/react-native-safe-area-context) via yarn add <lib>
  4. 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
  5. 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 of ``` include <path>/node_modules/react-native-safe-area-context/android/build/generated/source/codegen/jni/Android.mk

    import-codegen-modules := \ libreact_codegen_safeareacontext ```

  6. 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!