Node/ReactNative: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Android ==
<source lang="bash">
npx react-native run-android
</source>
<source lang="bash">
cd android
./gradle clean
cd ..
npx react-native run-android
</source>
== iOS ==
* Open Xcode
* Open Workspace
* Select '''Generic Device''' or '''Menu''' > '''Product''' > '''Destination''' > '''Generic Device'''
* Select '''Menu''' > '''Product''' > '''Archive'''
<source lang="bash">
<source lang="bash">
react-native bundle \
react-native bundle \
Line 8: Line 28:
</source>
</source>


== iOS ==
== Trouble Shooting ==
 
<source lang="text">
> Task :app:generateDebugBuildConfig FAILED
</source>
 
=== A ===
* Delete folder '''android/app/build'''.


* Open Xcode
=== B ===
* Open Workspace
* Delete repository and clone again.
* Select '''Generic Device''' or '''Menu''' > '''Product''' > '''Destination''' >> '''Generic Device'''
* npx react-native run-android
* Select '''Menu''' > '''Product''' > '''Archive'''
* Accept notification of firewall settings.

Latest revision as of 04:17, 9 September 2020

Android

npx react-native run-android
cd android
./gradle clean
cd ..
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

A

  • Delete folder android/app/build.

B

  • Delete repository and clone again.
  • npx react-native run-android
  • Accept notification of firewall settings.