-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
BugComponent: WebViewRelated to the WebView component.Related to the WebView component.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
🐛 Bug Report
I am using webview to load local html file which shows the variety of tiles on google maps.
it works on native project, but two tiles doesn't load in react native project with same html file.
React Native screenshot.
Native screenshot.
Expected Behavior
Need to show all tiles correctly like as native.
Code Example
Here is codechip for webview.
<WebView
originWhitelist={['*']}
onLoad={this.onLoad}
source={Platform.OS === 'android' ? { uri: 'file:///android_asset/index.html' } : {uri: './index.html'}}
dataDetectorTypes={'none'}
ref='webview'
onMessage={e => this.onMessage(JSON.parse(e.nativeEvent.data))}
onShouldStartLoadWithRequest={this.onShouldStartLoadWithRequest}
onNavigationStateChange={this.onShouldStartLoadWithRequest}
injectedJavaScript={patchPostMessageJsCode}
useWebKit={true}
/>
I am not sure why this file doesn't work on react native.
Any help are appreciated.
Metadata
Metadata
Assignees
Labels
BugComponent: WebViewRelated to the WebView component.Related to the WebView component.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.