infoMore than 3 years have passed since last update.
ReactNative-Expo内で展開したWebViewのchromeDevToolでの確認の方法
Last updated at Posted at 2020-04-07
出来ること
- Expoで展開したWebViewのlogなんかをChromeDevToolで見られる
- WebView生成後の確認
出来ないこと
手順
- AndroidStudioからAndroidエミュレーターの起動
-
expo start
でexpoの起動
-
expo start
で開かれたwebサイト上の Run on Android device/emulator
をクリックしてエミュレーターでApp起動
- この時、PCに複数のエミュレーターや実機が刺さっていると怒られる
-
chrome://inspect/#devices
をchromeで開くと対象のWebViewが出ているので確認できる
- 出てない場合はエミュレーターが開発者モードになってないのかも(build番号何回かTapするやつ
おまけ
- 下記みたいなの見つけて絶望したけど出来た
https://expo.canny.io/feature-requests/p/support-running-debugger-against-webview-without-native-changes
https://github.com/expo/expo/issues/485
- modules内の
kt
ファイルいじったり色々したけど無駄だった
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up