I created a new application:
$ react-native init myapp
Then tried to start it in ios:
$ react-native run-ios --port=9999
Got the following error message:
No bundle URL present
My React-native version is 0.60.3. But I have no problem to run my app for android by:
$ react-native run-android --port=9999
And I also have no problem to run myapp in previous react-native version 0.59.9.
Any idea?
Related
I am new to react-native and mobile development.
I am receiving an error while running detox build -c android command in react-native app created with expo.
Below are the steps that i followed,
created expo app using:
expo init appname
generated native code using:
npx expo prebuild --platform android
installed detox and mocha as dependencies
generated e2e using:
detox init -r mocha
run detox build -c android
and receiving below error
enter image description here
Following the official documentation in react native firebase/app#15.1.1 it gives me the build failed error for terminal using the npx react-native run-ios and also from xcode builed both failed to build ...Can someone Provide me the installation for react-native firebase/app along with it react-native firebase/messaging and pushnotification/ios ..i am new to react-native Please help...
Since today i having trouble to run project ..commandPrompt throwing an error like this..
E:\FirstProject>npx react-native run-android
error Unrecognized command "run-android".
info Run "react-native --help" to see a list of all available commands.
just open two terminal consoles and run
react-native start
and in the other
react-native run-android
I think npx is only to create the init project with react native cli
https://facebook.github.io/react-native/docs/getting-started
running:
react-native run-android
The build goes well and then it tries to install one of the dependencies (react-native-vector-icons) on the simulator instead of the main app:
So this isn't my first react native app but this is the first time i'm getting this error. I get the usual error when running:
react-native run-android --variant=release
Thats ok because I know it doesn't work. However, this one always use to work:
react-native run-android --configuration=release
But it is just stating: error: unknown option--configuration'`
I've had that issue before. I've done everything on the generate a signed APK web page. I can get a non-release but not the release. I even have the APK from: cd android && ./gradlew assembleRelease
Have you recently upgraded your React Native version?
Because the following only works on version 0.39.x
react-native run-android --configuration=release
Else, just use this
react-native run-android --variant=release