Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Sample React Native App
- * https://github.com/facebook/react-native
- *
- * @format
- * @flow
- */
- import React, { Component } from 'react';
- import { WebView } from 'react-native-webview';
- import { SafeAreaView,StyleSheet,ScrollView,View,Text,StatusBar,} from 'react-native';
- import {Header,LearnMoreLinks,Colors,DebugInstructions,ReloadInstructions,
- } from 'react-native/Libraries/NewAppScreen';
- export default class App extends Component {
- render(){
- return(
- <View style = {styles.container}>
- <WebView source={{ uri: 'https://facebook.github.io/react-native/' }} />
- </View>
- );}}
- const styles = StyleSheet.create({
- container:{ flex: 1, justifyContent: "center", backgroundColor:"red", height: 350},
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement