Installation
Requirements
Node 10 or greater is required. Development for iOS requires a Mac and Xcode 9.4 or up, and will target iOS 9 and up.
You also need to install the dependencies required by React Native:
Using the boilerplate
To create a new project using the boilerplate simply run :
npx react-native init MyApp --template @vahesaroyan/react-native-boilerplate
Running the project
Assuming you have all the requirements installed, you can setup and run the project by running:
yarn installto install the dependencies- run the following steps for your platform
Android
- only the first time you run the project, you need to generate a debug key with:
cd android/appkeytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000cd ../..to come back to the root folder
yarn startto start the metro bundler, in a dedicated terminalyarn androidto run the Android application (remember to start a simulator or connect an Android phone)
iOS
cd iospod installto install pod dependenciescd ..to come back to the root folderyarn startto start the metro bundler, in a dedicated terminalyarn iosto run the iOS application (remember to start a simulator or connect an iPhone phone)