LoginSignup
3
4

More than 5 years have passed since last update.

【React Native】便利コマンド一覧

Last updated at Posted at 2018-02-09

共通

キャッシュクリーン

*事前にjsビルド実行を停止しておく。

$ ./node_modules/react-native/scripts/packager.sh --reset-cache

停止

*取得したIDを利用

$ lsof -i -P | grep 8081
node      638281 {name}  415u  IPv6 ndausd8e920      0t0  TCP localhost:8081->localhost:23423 
$ kill -KILL 638281

Android

端末を指定してインストール

>接続中の端末と起動中のエミュレーターのID表示

$ adb devices

List of devices attached
06157df6a5bdc802        device

>端末指定の起動
*取得したIDを利用する。

$ react-native run-android --deviceId 06157df6a5bdc802

SHA1表示

$ keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

キーハッシュ作成

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | base64

iOS

随時追加予定です。
オススメの便利コマンドありましたら、ご指摘お願いします。

3
4
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
3
4