Node/ReactNative: Difference between revisions
< Node
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
== Android == | |||
<source lang="bash"> | <source lang="bash"> | ||
npx react-native run-android | npx react-native run-android | ||
</source> | </source> | ||
== iOS == | == iOS == | ||
| Line 20: | Line 11: | ||
* Select '''Generic Device''' or '''Menu''' > '''Product''' > '''Destination''' > '''Generic Device''' | * Select '''Generic Device''' or '''Menu''' > '''Product''' > '''Destination''' > '''Generic Device''' | ||
* Select '''Menu''' > '''Product''' > '''Archive''' | * Select '''Menu''' > '''Product''' > '''Archive''' | ||
<source lang="bash"> | |||
react-native bundle \ | |||
--entry-file index.js \ | |||
--platform ios \ | |||
--dev false \ | |||
--bundle-output ./ios/bundle/index.ios.jsbundle \ | |||
--assets-dest ./ios/bundle | |||
</source> | |||
== Trouble Shooting == | == Trouble Shooting == | ||
Revision as of 09:59, 7 September 2020
Android
npx react-native run-android
iOS
- Open Xcode
- Open Workspace
- Select Generic Device or Menu > Product > Destination > Generic Device
- Select Menu > Product > Archive
react-native bundle \
--entry-file index.js \
--platform ios \
--dev false \
--bundle-output ./ios/bundle/index.ios.jsbundle \
--assets-dest ./ios/bundle
Trouble Shooting
> Task :app:generateDebugBuildConfig FAILED
Delete folder android/app/build.