react native-tutorial

First Application with CLI

Use the React Native CLI to run the following commands to create a brand-new React Native project called FirstProject:

npx react-native init FirstProject
cd FirstProject
npx react-native start

You can launch a Metro Bundler development server with this. After installing Android Studio or Xcode, run the following command to launch your app on an actual or virtual Android device using USB:

npx react-native run-android

Run the following commands on the iOS Simulator (available for Mac only) to accomplish this:

npx react-native run-ios

The programme will be visible operating on either a real device or an emulator/simulator.


Leave a Reply

Your email address will not be published. Required fields are marked *