[1/3] upgrade react-native 0.71 (#20799)# Why upgrade react-native 0.71 for sdk 48 close ENG-7192 # How - update package versions - `react: 18.1.0 -> 18.2.0` - `react-native 0.70.5
[1/3] upgrade react-native 0.71 (#20799)# Why upgrade react-native 0.71 for sdk 48 close ENG-7192 # How - update package versions - `react: 18.1.0 -> 18.2.0` - `react-native 0.70.5 -> 0.71.0` - `react-dom: 18.1.0 -> 18.2.0` - `react-test-renderer: 18.1.0 -> 18.2.0` - `react-native-web: 0.18.9 -> 0.18.10` - `babel-plugin-react-native-web: 0.18.9 -> 0.18.10` - `metro-react-native-babel-preset: 0.72.3 -> 0.73.5` - upgrade three project templates based on [upgrade-helper](https://react-native-community.github.io/upgrade-helper/?from=0.70.6&to=0.71.0) - bare-expo - expo-template-bare-minimum - fabric-tester (this is based on `npx expo prebuild --clean --no-install --template /path/to/expo-template-bare-minimum.tgz`) so it includes some inconsistent changes - [@expo/config-plugins]: support 0.71 template transform. the `namespace` in build.gradle and the files in `release` build variants - [fbjni] upgrade 0.3.0 to align 0.71 (also ndk version) - [expo-updates] move the `EX_UPDATES_NATIVE_DEBUG` `bundleInDebug` setup to templates. unfortunately, because RNGP setups the task dependencies pretty early. the original setup in expo-updates build.gradle is too late. note that the change doesn't reference any files from templates to expo-updates package. somehow it's not tightly coupled. - [native-tests / expo-modules-test-core / expo-modules-autolinking] fix ios unit test build error because jsc now in a dedicated podspec. in theory, the ios native unit test could now run on hermes as well. - for other details, please check commit histories one by one. # Test Plan - bare-expo ios / android - fabric ios / android - ci passed (except ios) - test-suite ios is broken for unknown reasons. it breaks only on github actions and hermes. for nightlies testing, i also [changed it to jsc](https://github.com/expo/expo/blob/1e029c89c4247802cc4880e27e116a6b4c71c502/tools/src/commands/SetupReactNativeNightly.ts#L287-L293) to make ci green. i'll try to follow up and investigate the root cause.
show more ...
[android][ios] Upgrade to react-native 0.68 (#16532)# Why targeting react-native 0.68 in sdk 45 even though it's rc now. # How - [x] upgrade package.json - [x] migrate bare-expo - [x] mi
[android][ios] Upgrade to react-native 0.68 (#16532)# Why targeting react-native 0.68 in sdk 45 even though it's rc now. # How - [x] upgrade package.json - [x] migrate bare-expo - [x] migrate expo-template-bare-minimum - [x] migrate bare-sandbox ❗️ reanimated build error because our previous integration is broken on AGP 7. solution in [the pr](https://github.com/software-mansion/react-native-reanimated/pull/3113). since the pr is not landed yet, i have a [temporarily workaround to patch reanimated](https://github.com/expo/expo/pull/16532/commits/8e5662bec377ea11edc21ec6114c39f6580cb56a). # Test Plan - android bare-expo launch test - ios bare-expo launch test
[bare-expo] Change `cleartextTrafficPermitted` setting (#15381)# Why During `expo-dev-client` QA, I noticed that I wasn't able to connect to any application due to a cleartext traffic error on A
[bare-expo] Change `cleartextTrafficPermitted` setting (#15381)# Why During `expo-dev-client` QA, I noticed that I wasn't able to connect to any application due to a cleartext traffic error on Android 11+. This setting is by default set to true in react-native projects. # Test Plan - dev-client in bare-expo is now working on Android 11+ ✅
[react-native] Upgrade to 0.64.2 (#13793)# Why Upgrade react-native to 0.64.2 for SDK 43 # How - [x] Fork `react-native-lab/react-native` from `react-native` 0.64-stable branch and cherry-
[react-native] Upgrade to 0.64.2 (#13793)# Why Upgrade react-native to 0.64.2 for SDK 43 # How - [x] Fork `react-native-lab/react-native` from `react-native` 0.64-stable branch and cherry-pick necessary patches from `exp-latest` - [x] Bump package versions: - react "16.13.1" → "17.0.1" - react-dom "16.13.1" → "17.0.1" - react-native "0.63.2" → "0.64.2" - react-test-renderer "~16.13.1" → "~17.0.1" - @types/react-native "~0.63.2" → "~0.64.12" - @babel/core "^7.0.0" → "^7.12.9" - metro-react-native-babel-preset "~0.59.0" → "~0.64.0" - jest "^25.2.0" → "^26.6.3" - [x] bare-expo: sync project setup from [upgrade helper](https://react-native-community.github.io/upgrade-helper/?from=0.63.2&to=0.64.2) - [x] Fix JS Error parsing error from [upstream change](https://github.com/facebook/react-native/commit/9edfc43aad2f68be8a37) - [x] Expo Go for iOS: - Folly.podspec -> RCT-Folly.podspec for old SDKs - Upgrade reanimated vendoring script to support RN 0.64 - Update reanimated install binding with RCTJSIExecutorRuntimeInstaller - [x] Expo Go for Android: - Fix hanging from loading bundle which ReactRootView not attached to ReactInstanceManager from [upstream change](https://github.com/facebook/react-native/commit/2c896d35782cd04c873aefadc947447cc30a7f60) Could use this command to make review easier: `git diff master...HEAD -- . ':!android/ReactCommon' ':!android/ReactAndroid/src'` # Test Plan - Bare Expo - [x] iOS runs - [x] Android runs - [x] Web runs - Expo Go with NCL - [x] unversioned QA on iOS - [x] unversioned QA on Android - [x] Could load SDK 42 project on iOS - [x] Could load SDK 42 project on Android - Shell app - [x] iOS build passed - [x] Android build passed