Node/ReactNative

From Fundamental Ramen
Jump to navigation Jump to search

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.