Skip to content

Commit 5316cb7

Browse files
authored
chore: support RCT_USE_RN_DEP and RCT_USE_PREBUILT_RNCORE flags (#2695)
1 parent eea99b9 commit 5316cb7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/cli-config-apple/src/tools/installPods.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ async function runPodInstall(loader: Ora, options: RunPodInstallOptions) {
3535
env: {
3636
RCT_NEW_ARCH_ENABLED: options?.newArchEnabled ? '1' : '0',
3737
RCT_IGNORE_PODS_DEPRECATION: '1', // From React Native 0.79 onwards, users shouldn't install CocoaPods manually.
38+
...(process.env.USE_THIRD_PARTY_JSC && {
39+
USE_THIRD_PARTY_JSC: process.env.USE_THIRD_PARTY_JSC,
40+
}), // This is used to install the third party JSC.
41+
...(process.env.RCT_USE_RN_DEP && {
42+
RCT_USE_RN_DEP: process.env.RCT_USE_RN_DEP,
43+
}), // prebuilt RN dep available from 0.80 onwards
44+
...(process.env.RCT_USE_PREBUILT_RNCORE && {
45+
RCT_USE_PREBUILT_RNCORE: process.env.RCT_USE_PREBUILT_RNCORE,
46+
}), // whole RN core prebuilt from 0.81 onwards
3847
},
3948
});
4049
} catch (error) {

0 commit comments

Comments
 (0)