1. 1
    Create a React Native App and Run it on the iOS Simulator and Android Emulator
    2m 3s

Create a React Native App and Run it on the iOS Simulator and Android Emulator

Share this video with your friends

Send Tweet

We’ll create a brand new React Native app, and get it to launch on the iOS simulator and Android emulator. A Mac is required to build for iOS, but Android development can be done on Mac, Windows, or Linux.

Ina Cherry
Ina Cherry
~ 6 years ago

After installing the React Native CLI and Xcode if you're running iOS or the Android dependencies if you want to run Android (what do you mean by that ? I'm running on my ubuntu, so no ios or Android .. ), ... is this step covered somewhere ?

Chris Achard
Chris Achard(instructor)
~ 6 years ago

Ina: Go here: https://facebook.github.io/react-native/docs/getting-started

And then select "React Native CLI Quickstart", and then select "Linux", and "Android".

That should walk you through the steps to install the Android dependencies on Ubuntu, so that you can build for Android

Jiří Žán
Jiří Žán
~ 6 years ago

After running command: react-native run-ios there is error message in simulator: "No bundle URL present". Solution is to run: yarn start in project root

Deepak Sharma
Deepak Sharma
~ 5 years ago

Hi Chris, After running the command react-native run-ios, I got the following error:

Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

Can you please help me fix this?

My react-native version is 2.0.1 & xcode version is 9.4.1

Deepak Sharma
Deepak Sharma
~ 5 years ago

Also, when I opened RestaurantReview.xcworkspace in Xcode and hit Run button. I got the following error:

Property 'passwordRules' not found on object of type 'UIView<RCTBackedTextInputViewProtocol> *'

XCode RNError

Chris Achard
Chris Achard(instructor)
~ 5 years ago

Hm - it seems like it could be caused by several different things... there's many options here: https://github.com/facebook/react-native/issues/25240

(for the error 65) Do any of those help?

Deepak Sharma
Deepak Sharma
~ 5 years ago

nothing worked from that thread so far.. trying - reinstall cocoapods > pod install > run-ios 🤞🤞

After this, only option left to be tried would be restarting the system. I've little hope from that, since 8081 port is already free on my system.

Deepak Sharma
Deepak Sharma
~ 5 years ago

no success.. still same error :(