Answers for "react native webview"

1

react native webview

// How to make a simple webview app using React Native
// Added a statusbar also
// It's simple, Just pass the URL.
// Change the App component and replace the following code on it.

import React, {Component} from 'react';
import {StatusBar} from 'react-native';
import {WebView} from 'react-native-webview';

class App extends Component {
  render() {
    return (
      <>
        <StatusBar
          animated={true}
          backgroundColor="#0fc7f0"
          showHideTransition={true}
        />
        <WebView source={{uri: 'https://devsenv.com'}} />
      </>
    );
  }
}

export default App;
Posted by: Guest on September-14-2021

Code answers related to "react native webview"

Code answers related to "Javascript"

Browse Popular Code Answers by Language