This commit is contained in:
Qiyuan 2017-11-25 02:16:25 +00:00 committed by GitHub
commit 9a26f9bcc4
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ export default class App extends Component {
height: this.props.height || 400,
}}
source={require('./tpl.html')}
style={{backgroundColor: this.props.option.backgroundColor || '#FFFFFF'}}
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
/>
</View>