mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Update React Native to use latest CLI (#23940)
Summary: Latest CLI requires `reactNativePath` to be explicitly set when `react-native` is not present under `node_modules` (which is the case when running from source). Fixes #23936 This PR also updates CLI to latest version and removes private calls to `findPlugins` (it's now exposed under public interface). We also remove custom `rn-cli.config.js` options that are no longer needed that we have `--reactNativePath`. I added them a month ago as a temporary workaround. [GENERAL] [FIXED] - Internal - Update to the latest CLI Pull Request resolved: https://github.com/facebook/react-native/pull/23940 Differential Revision: D14472633 Pulled By: cpojer fbshipit-source-id: b7ea92ee130da6730aa0093265958aa1b8c2ab97
This commit is contained in:
committed by
Facebook Github Bot
parent
2fdd7c9b43
commit
1fe4799a88
@@ -17,7 +17,7 @@ echo "Compiling native code..."
|
||||
./gradlew :ReactAndroid:packageReactNdkLibsForBuck
|
||||
|
||||
echo "Building JS bundle..."
|
||||
node cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
|
||||
node cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js --reactNativePath .
|
||||
|
||||
echo "Installing test app on the device..."
|
||||
buck fetch ReactAndroid/src/androidTest/buck-runner:instrumentation-tests
|
||||
|
||||
Reference in New Issue
Block a user