2
Webコンテンツを表示するためにローカルファイルrequire
を使用するWebViewがあります。 HTMLファイルは、Androidのリリースバンドルに含まれていないかのようReactNative Android用のリリースバンドルにスタティックhtmlを含めるにはどうすればよいですか?
<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) }
/>
これは、DEVモードでIOSとAndroid上で完璧に動作は、しかし、それはそうです。
どうすればバンドルに追加できますか?