Webview 将本机scalesPageToFit don';t在0.30.0版上工作

Webview 将本机scalesPageToFit don';t在0.30.0版上工作,webview,react-native,scale,Webview,React Native,Scale,我想在我的应用程序中添加WebView,并想缩放页面以适应我的手机。 我使用scalesPageToFit来实现这一点,但它在Android中不起作用。 我正在使用react native的0.30verison 这是我的代码: class Test extends Component { constructor(props) { super(props); this.state = {scalesPageToFit: true}; } onNavigationStateCh

我想在我的应用程序中添加WebView,并想缩放页面以适应我的手机。 我使用scalesPageToFit来实现这一点,但它在Android中不起作用。 我正在使用react native的0.30verison

这是我的代码:

class Test extends Component {

constructor(props) {
    super(props);
    this.state = {scalesPageToFit: true};
}

onNavigationStateChange(navState) {
    this.setState({
        scalesPageToFit: true
    });
}

render() {
    return (
        <View>
            <WebView 
                automaticallyAdjustContentInsets={false}
                scalesPageToFit={this.state.scalesPageToFit}
                onNavigationStateChange={() => this.onNavigationStateChange()}
                style={{height: 500}} 
                source={{uri: "http://www.avosannonces.fr"}}
            />
        </View>
    );
}

}
类测试扩展组件{
建造师(道具){
超级(道具);
this.state={scalesPageToFit:true};
}
onNavigationStateChange(导航状态){
这是我的国家({
scalesPageToFit:对
});
}
render(){
返回(
此.onNavigationStateChange()}
样式={{高度:500}
源={{uri:“http://www.avosannonces.fr"}}
/>
);
}
}

这就是我得到的答案:

你得到答案了吗?