create an app project in react native and run the app code example
Example 1: how to run react native app
react-native run-android
react-native run-ios
Example 2: how to create a new react native project
$ npx react-native init firstapp
Example 3: how to create a new react native project
C:\Users\Tutorialspoint> npm install -g create-react-native-app