React Native
React NativeのWebViewでのログの出力方法のメモ。 injectedJavaScript と onMessage を使う。 ボタンをクリックした時にログを表示するサンプル。 console.log() も window.ReactNativeWebView.postMessage() も表示できる。 index.tsx const debugging = `…
React NativeのWebViewでのログの出力方法のメモ。 injectedJavaScript と onMessage を使う。 ボタンをクリックした時にログを表示するサンプル。 console.log() も window.ReactNativeWebView.postMessage() も表示できる。 index.tsx const debugging = `…