Skip to content

Commit 129fef9

Browse files
authored
chore(e2e): enable RN 0.81+ iOS prebuilt pods in example setup (#135)
## Summary Updated the example app setup flow so React Native `0.81.x` to `0.83.x` examples use React Native iOS prebuilt artifacts during `pod install`. With this change: - The existing `setup:pods` npm script now runs different iOS pod install commands depending on the React Native version. - The checked-in RN `0.81.6`, `0.82.1`, and `0.83.2` example apps were refreshed to match the same rule. ## Changes - Updated `setup-example-app` so the generated `setup:pods` script is version-aware - RN `0.81.x` to `0.83.x` - `RCT_USE_RN_DEP=1 RCT_USE_PREBUILT_RNCORE=1 bundle exec pod install` - RN `< 0.81.0` - keeps the existing `bundle exec pod install` - RN `>= 0.84.0` - keeps the default React Native behavior ## Expected Impact - Reduces iOS dependency installation time for RN `0.81+` example apps
1 parent e0d4aa2 commit 129fef9

16 files changed

Lines changed: 1195 additions & 3171 deletions

File tree

Examples/RN0816/ios/Podfile.lock

Lines changed: 358 additions & 1017 deletions
Large diffs are not rendered by default.

Examples/RN0816/ios/RN0816.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@
385385
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
386386
SDKROOT = iphoneos;
387387
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
388+
SWIFT_ENABLE_EXPLICIT_MODULES = NO;
388389
SWIFT_OBJC_BRIDGING_HEADER = "RN0816/RN0816-Bridging-Header.h";
389390
USE_HERMES = true;
390391
};
@@ -455,6 +456,7 @@
455456
);
456457
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
457458
SDKROOT = iphoneos;
459+
SWIFT_ENABLE_EXPLICIT_MODULES = NO;
458460
SWIFT_OBJC_BRIDGING_HEADER = "RN0816/RN0816-Bridging-Header.h";
459461
USE_HERMES = true;
460462
VALIDATE_PRODUCT = YES;

Examples/RN0816/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "react-native start",
1010
"test": "jest",
1111
"sync-local-library": "ts-node --project tsconfig.json \"../../scripts/setupExampleApp/syncLocalLibrary.ts\"",
12-
"setup:pods": "bundle install && cd ios && bundle exec pod install",
12+
"setup:pods": "bundle install && cd ios && RCT_USE_RN_DEP=1 RCT_USE_PREBUILT_RNCORE=1 bundle exec pod install",
1313
"postinstall": "npm run sync-local-library"
1414
},
1515
"dependencies": {

0 commit comments

Comments
 (0)