File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/platform-apple-helpers/src/lib/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ async function runPodInstall(options: {
124124 numeric : true ,
125125 sensitivity : 'base' ,
126126 } ) >= 0 ;
127+ const usePrebuiltReactNative = ! options . brownfield && isReactNative81OrHigher ;
127128 const command = options . useBundler ? 'bundle' : 'pod' ;
128129 const args = options . useBundler ? [ 'exec' , 'pod' , 'install' ] : [ 'install' ] ;
129130 try {
@@ -132,9 +133,9 @@ async function runPodInstall(options: {
132133 RCT_NEW_ARCH_ENABLED : options . newArch ? '1' : '0' ,
133134 RCT_IGNORE_PODS_DEPRECATION : '1' ,
134135 RCT_USE_RN_DEP :
135- process . env [ 'RCT_USE_RN_DEP' ] || isReactNative81OrHigher ? '1' : '0' ,
136+ process . env [ 'RCT_USE_RN_DEP' ] || usePrebuiltReactNative ? '1' : '0' ,
136137 RCT_USE_PREBUILT_RNCORE :
137- process . env [ 'RCT_USE_PREBUILT_RNCORE' ] || isReactNative81OrHigher
138+ process . env [ 'RCT_USE_PREBUILT_RNCORE' ] || usePrebuiltReactNative
138139 ? '1'
139140 : '0' ,
140141 ...( options . brownfield && { USE_FRAMEWORKS : 'static' } ) ,
You can’t perform that action at this time.
0 commit comments