Last active
June 14, 2021 13:03
-
-
Save heytulsiprasad/546ab4e882dbce3a03a852a6f6a22a0c to your computer and use it in GitHub Desktop.
Basic usage of React Native Webview inside a component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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