We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffcc6c9 commit 90a59cfCopy full SHA for 90a59cf
src/bundle.js
@@ -51,9 +51,20 @@ async function runReactNativeBundleCommand(
51
52
fs.emptyDirSync(outputFolder);
53
54
- let cliPath = require.resolve('react-native/local-cli/cli.js', {
55
- paths: [process.cwd()],
56
- });
+ let cliPath;
+
+ try {
57
+ // rn >= 0.75
58
+ cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
59
+ paths: [process.cwd()],
60
+ });
61
+ } catch (e) {
62
+ // rn < 0.75
63
+ cliPath = require.resolve('react-native/local-cli/cli.js', {
64
65
66
+ }
67
68
let usingExpo = false;
69
try {
70
require.resolve('expo-router', {
0 commit comments