From e55211c7b55728d8158bae014efa8560cb447f78 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 16 Dec 2025 11:34:43 +0000 Subject: [PATCH] [RN][iOS] Use precompipled binaries by default --- packages/react-native/scripts/react_native_pods.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-native/scripts/react_native_pods.rb b/packages/react-native/scripts/react_native_pods.rb index 75b21b486136..447aa8cc54ca 100644 --- a/packages/react-native/scripts/react_native_pods.rb +++ b/packages/react-native/scripts/react_native_pods.rb @@ -84,6 +84,11 @@ def use_react_native! ( # This is needed as part of our migration away from cocoapods ENV['RCT_SKIP_CODEGEN'] = ENV['RCT_SKIP_CODEGEN'] == '1' || ENV['RCT_IGNORE_PODS_DEPRECATION'] == '1' ? '1' : '0' + # Use the React Native precompiled binaries by default. + # Users can still turn them off and build from source by setting the environment variable to 0. + ENV['RCT_USE_RN_DEP'] = ENV['RCT_USE_RN_DEP'] == '0' ? '0' : '1' + ENV['RCT_USE_PREBUILT_RNCORE'] = ENV['RCT_USE_PREBUILT_RNCORE'] == '0' ? '0' : '1' + ReactNativePodsUtils.check_minimum_required_xcode() # Current target definition is provided by Cocoapods and it refers to the target