相关疑难解决方法(0)

如何在 React Native 中更改 WebView 的背景颜色?

我的 WebView 首先加载,然后按下 TouchableOpacity。我可以在后台 webview 更改后执行此操作而不重新启动 webview 吗?

import React, {Component} from 'react';
import {View,Text} from 'react-native'

export default class TestScreen extends Component {
render() {
return  (
    <View >
        <TouchableOpacity onPress={/*what is the function that changes the background color of the webview after loading it (but without reloading the Webview)*/}>
         <WebView>
       </TouchableOpacity>

     </View>
  );
}}
Run Code Online (Sandbox Code Playgroud)

react-native

2
推荐指数
2
解决办法
4313
查看次数

标签 统计

react-native ×1