react native webview

Solutions on MaxInterview for react native webview by the best coders in the world

showing results for - "react native webview"
Luka
12 Jan 2017
1// How to make a simple webview app using React Native
2// Added a statusbar also
3// It's simple, Just pass the URL.
4// Change the App component and replace the following code on it.
5
6import React, {Component} from 'react';
7import {StatusBar} from 'react-native';
8import {WebView} from 'react-native-webview';
9
10class App extends Component {
11  render() {
12    return (
13      <>
14        <StatusBar
15          animated={true}
16          backgroundColor="#0fc7f0"
17          showHideTransition={true}
18        />
19        <WebView source={{uri: 'https://devsenv.com'}} />
20      </>
21    );
22  }
23}
24
25export default App;