-
Notifications
You must be signed in to change notification settings - Fork 3
React Native
ΖΛΚ edited this page Mar 19, 2018
·
5 revisions
react-native run-ios
react-native run-android
rm -rf node_modules
- Delete package-lock.json or yarn.lock
-
npm install
oryarn install
react-native link
npm start -- --reset-cache
-
react-native run-ios
orreact-native run-android
- npm run build:ios
- Drag the
main.jsbundle
file into Xcode from<project-name>/ios/<project-name>/main.jsbundle
- Run the project using Xcode build button.
- Open the
<project-name>/android
folder using Android Studio - Run the project using Android Studio build cmd and select the emulator you wish.
- Delete ios/ and android/
react-native eject
-
npm install -g react-native-git-upgrade
// if this package is not installed react-native-git-upgrade
react-native link
react-native run-ios
npm install -g yo generator-rn-toolbox
brew install imagemagick
yo rn-toolbox:assets --icon <image-directory>
- You will be asked for the name of your react-native project, Project name is
<project-name>
- When you are asked:
? Overwrite ios/<project-name>/Images.xcassets/AppIcon.app iconset/Contents.json?
replay withy
For more information check here: https://github.com/bamlab/generator-rn-toolbox/blob/master/generators/assets/README.md