@bugfix, Webview does not show in the release version

This commit is contained in:
hydraZhang 2018-11-15 14:46:47 +08:00
parent 3767deeae3
commit 0e592c52e7
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ export default class App extends Component {
backgroundColor: this.props.backgroundColor || 'transparent'
}}
scalesPageToFit={Platform.OS !== 'ios'}
originWhitelist={['*']}
source={require('./tpl.html')}
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
/>