2

requireローカル ファイルを使用して Web コンテンツを表示する WebView があります。

  <WebView
    source={ require('./inline_web_view/inline_web_view.html') }
    injectedJavaScript={ scripts }
    scrollEnabled={ this.props.scrollEnabled || false }
    scalesPageToFit={ false }
    style={{
      width: this.state.width,
      height: this.state.height,
    }}
    onNavigationStateChange={ (navState)=> this.onNavigationStateChange(navState) }
  />

これは開発モードの ios および Android で完全に機能しますが、HTML ファイルが Android リリース バンドルに含まれていないようです。

どうすればバンドルに追加できますか?

4

1 に答える 1