Cpp.js React Native sample
npm install @cpp.js/sample-mobile-reactnative-nativecli>Note: Make sure you have completed the Cpp.js - Prerequisites instructions.
``bash`
npm install
cd ios
pod install
cd ..
First, you will need to start Metro, the JavaScript _bundler_ that ships _with_ React Native.
To start Metro, run the following command from the _root_ of your React Native project:
`bash`
npm start
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
`bash`
npm run android
`bash``
npm run ios
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.