Tuesday, December 31, 2019

React Native: Running the apps

React Native: Running the apps

With the below steps. We can run a sample React Native application on the simulator.

Create the app using the below steps

$ npm i -g create-react-native-app
$ create-react-native-app my-project
$ cd my-project
$ npm start

Below given the console message those are printed when app is running on the simulator.

Opening on Android device
Downloading latest version of Expo
Installing Expo on device
Opening on Android device
Building JavaScript bundle: finished in 32761ms.

This launches the app on the Simulator.

One main thing to note is, if VPN is connected, I found this to be not working.

Its pretty good that when try to change the text, it reloads automatically. Nice!

References:

No comments:

Post a Comment