Skip to content

Commit 0e592c5

Browse files
author
hydraZhang
committed
@BugFix, Webview does not show in the release version
1 parent 3767dee commit 0e592c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Echarts/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default class App extends Component {
3333
backgroundColor: this.props.backgroundColor || 'transparent'
3434
}}
3535
scalesPageToFit={Platform.OS !== 'ios'}
36+
originWhitelist={['*']}
3637
source={require('./tpl.html')}
3738
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
3839
/>

0 commit comments

Comments
 (0)