我的 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 ×1