You need to first init a react native empty project with react-native init AwesomeProject
.
Then insert starter's files into your newly generated app.
The entry file point is in src/Root
.
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import { AppRegistry } from 'react-native';
import Root from './src/Root';
AppRegistry.registerComponent('MyApp', () => Root);
Install dependencies
yarn install
RNFB_ANDROID_PERMISSIONS=true react-native link
react-native run-android|run-ios
npm run sourcemaps
Build via Xcode
cd android
./gradlew assembleRelease