Advertisement
raphaelluiz128

testewebview

Oct 14th, 2019
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 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://github.com/facebook/react-native' }}
  19. scalesPageToFit = {true}/></View>
  20. );}}
  21. const styles = StyleSheet.create({
  22. container:{height:150,width:150,overflow:'hidden'},
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement