This commit is contained in:
Qiyuan 2018-02-22 07:17:05 +00:00 committed by GitHub
commit 9a97e13fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export default class App extends Component {
}} }}
scalesPageToFit={Platform.OS !== 'ios'} scalesPageToFit={Platform.OS !== 'ios'}
source={require('./tpl.html')} source={require('./tpl.html')}
style={{backgroundColor: this.props.option.backgroundColor || 'rgba(0, 0, 0, 0)'}}
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
/> />
</View> </View>