Skip to content

Commit df9d31b

Browse files
cipolleschimeta-codesync[bot]
authored andcommitted
Use precompipled binaries by default (#54895)
Summary: This change set up React native to use the precompiled binaries by default. Users can still turn them off by passing `RCT_USE_PREBUILT_RNCORE=0 bundle exec pod install` By default, RNTester will still build from source. ## Changelog: [iOS][Changed] - Use prebuild by default Pull Request resolved: #54895 Test Plan: Tested on a React native app created using RN 0.83.0 Reviewed By: huntie Differential Revision: D89277683 Pulled By: cipolleschi fbshipit-source-id: 4781e9e5561c3c7b264d2b1547910c9b4f63c276
1 parent 4e0b923 commit df9d31b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/react-native/scripts/react_native_pods.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ def use_react_native! (
8484
# This is needed as part of our migration away from cocoapods
8585
ENV['RCT_SKIP_CODEGEN'] = ENV['RCT_SKIP_CODEGEN'] == '1' || ENV['RCT_IGNORE_PODS_DEPRECATION'] == '1' ? '1' : '0'
8686

87+
# Use the React Native precompiled binaries by default.
88+
# Users can still turn them off and build from source by setting the environment variable to 0.
89+
ENV['RCT_USE_RN_DEP'] = ENV['RCT_USE_RN_DEP'] == '0' ? '0' : '1'
90+
ENV['RCT_USE_PREBUILT_RNCORE'] = ENV['RCT_USE_PREBUILT_RNCORE'] == '0' ? '0' : '1'
91+
8792
ReactNativePodsUtils.check_minimum_required_xcode()
8893

8994
# Current target definition is provided by Cocoapods and it refers to the target

0 commit comments

Comments
 (0)