LoginSignup
0
0

More than 3 years have passed since last update.

React Nativeでコードの変更が反映されない時(Android)

Posted at

コードを変えても反映されない問題(RN)

React Nativeでしばらく触っていなかったプロジェクトやアップグレードを行なった際に、コードを変えても変更がデバイス上で反映されないことがある。

以下のコマンドで解決した。

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

# ↑を叩いたらいつも通り起動
react-native run-android
# or npx react-native run-android

参考:
https://stackoverflow.com/questions/48304116/react-native-run-android-do-not-updating-modified-code

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0