Skip to content

Instantly share code, notes, and snippets.

@heytulsiprasad
Last active June 14, 2021 13:03
Show Gist options
  • Select an option

  • Save heytulsiprasad/546ab4e882dbce3a03a852a6f6a22a0c to your computer and use it in GitHub Desktop.

Select an option

Save heytulsiprasad/546ab4e882dbce3a03a852a6f6a22a0c to your computer and use it in GitHub Desktop.
Basic usage of React Native Webview inside a component
import React from 'react';
import {SafeAreaView, StatusBar} from 'react-native';
import {WebView} from 'react-native-webview';
const App = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={{flex: 1}}>
<WebView source={{uri: 'https://medium.com/'}} />
</SafeAreaView>
</>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment