I want to use WebView to show some html content
here is an example:
return (
<WebView
style={styles.container}
source={source}
scalesPageToFit={Boolean(true)}
onNavigationStateChange={this._onNavigationStateChange} />
)
and for the source variable I need to have two different values:
1) for android platform I need to use something like this:
source = {uri: `file:///android_asset/contents/${languageId}text.html`}
2) for ios I need to use smth. like this:
source = require(`../srv/localization/contents/${languageId}text.html`)
For android it works well, but for ios it doesn't work. And this url works fine for iOS also
require(`../srv/localization/contents/entext.html`)
As I understand that is because of dynamic url (${languageId}text.html)
The question is how to use dynamic urls for iOS?