Advertisement
raphaelluiz128

webview

Oct 12th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. * @flow
  7. */
  8. import React, { Component } from 'react';
  9. import { WebView } from 'react-native-webview';
  10. import { SafeAreaView,StyleSheet,ScrollView,View,Text,StatusBar,} from 'react-native';
  11. import {Header,LearnMoreLinks,Colors,DebugInstructions,ReloadInstructions,
  12. } from 'react-native/Libraries/NewAppScreen';
  13.  
  14. export default class App extends Component {
  15. render(){
  16. return(
  17. <View style = {styles.container}>
  18. <WebView source={{ uri: 'https://facebook.github.io/react-native/' }} />
  19. </View>
  20. );}}
  21.  
  22. const styles = StyleSheet.create({
  23. container:{ flex: 1, justifyContent: "center", backgroundColor:"red", height: 350},
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement