A
A
ASQWZS2018-12-12 20:50:56
React Native
ASQWZS, 2018-12-12 20:50:56

How to change background color of WebView in React native?

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

export default class TestScreen extends Component {
  render() {
    return  (
        <View >
            <TouchableOpacity}>
             <WebView>
           </TouchableOpacity>

        </View>
    );
  }
}

My WebView is loaded first and after that the user clicks TouchableOpacity. And how can I make the background WebView change after clicking without reloading the WebView?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick, 2018-12-20
@DragonSpirit

Looking at what is displayed in the webview. If your page, then you can decide to throw postMessage on the forehead, catch it on the side of the displayed content and change the style of the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question