I tried building the AwesomeProject
app to device. The build succeeds and the splash screen shows, but then I see a red "Could not connect to development server" screen. It says that "Ensure node server is running - run 'npm start' from React root."
It looks like the node server is already running because when I do npm start
I get an EADDRINUSE
message, saying that the port is already in use.
React Native enables you to write Android and iOS apps using JavaScript. It uses React's virtual DOM concept to manipulate native platform UI components, providing a familiar experience to users. There are two ways to build iOS apps: React Native CLI: More complex but gives you more control over your app.
While you can use any editor of your choice to develop your app, you will need to install Xcode in order to set up the necessary tooling to build your React Native app for iOS.
Accessing development server from device You can iterate quickly on device using development server. To do that, your laptop and your phone have to be on the same wifi network.
ps:http://facebook.github.io/react-native/docs/runningondevice.html#content
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With