Node/ReactNative: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
npx react-native run-android
npx react-native run-android
</source>
</source>


== iOS ==
== iOS ==
Line 18: Line 20:
* 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'''
== Trouble Shooting ==
```
> Task :app:generateDebugBuildConfig FAILED
```
Delete folder '''android/app/build'''.

Revision as of 09:58, 7 September 2020

react-native bundle \
  --entry-file index.js \
  --platform ios \
  --dev false \
  --bundle-output ./ios/bundle/index.ios.jsbundle \
  --assets-dest ./ios/bundle
npx react-native run-android


iOS

  • Open Xcode
  • Open Workspace
  • Select Generic Device or Menu > Product > Destination > Generic Device
  • Select Menu > Product > Archive

Trouble Shooting

``` > Task :app:generateDebugBuildConfig FAILED ```

Delete folder android/app/build.