Merge pull request #73 from MessiQS/master

处理ios11 高度只有设定height的一半
This commit is contained in:
Arron Zhu 2017-12-08 16:37:49 +08:00 committed by GitHub
commit 7d18dbe76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export default class App extends Component {
style={{ style={{
height: this.props.height || 400, height: this.props.height || 400,
}} }}
scalesPageToFit={false}
source={require('./tpl.html')} source={require('./tpl.html')}
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}
/> />