在软件内部打开一个网页--不喜欢它没有办法返回,还需要再添加返回按钮==

import React from 'react';
import {
    AppRegistry,
    Component,
    ScrollView,
    TouchableOpacity,
    Text,
    View,
    WebView
} from 'react-native';

export default class WebViewView extends React.Component {
    render() {
        var url = this.props.stateParams;
        return (
            <WebView
                ref="webview"
                automaticallyAdjustContentInsets={false}
                style={{backgroundColor:'rgba(255,255,255,0.8)', height:350}}
                source={{uri:url}}
                javaScriptEnabled={true}
                domStorageEnabled={true}
                decelerationRate="normal"
                startInLoadingState={true}
            />
        )
    }
}

 

相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2021-06-03
  • 2021-08-14
  • 2022-01-15
  • 2022-01-21
  • 2021-09-29
  • 2021-10-16
猜你喜欢
  • 2021-05-20
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-01-17
相关资源
相似解决方案