git clone https://github.com/tannguyen208/react.native.git <your_app_name>
cd <your_app_name>
Use the package manager tanna to install tanna.
npm install
// or
yarn install
What simply works for me several times is instructed below.
- First copy the directory which your to-be-name-changed application exists. And go to your newly cloned directory.
- Change the name at index.ios/android.js file which is given as a parameter to AppRegistry.
- Change the name and version accordingly on package.json.
- delete /ios and /android folders which are remaining from your older app as well as the app.json file if you have.
- Generate /ios and /android folders again, run:
react-native upgrade
- For any external dependency, run:
react-native link
- Use code push
- complete. π€£
With android
npm run android
// or
yarn android
With ios
npm run ios
// or
yarn ios
1.0.0