-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
51 lines (47 loc) · 1.14 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
//import React from 'react';
import React, { Component } from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import Header from './src/components/header'
import Main from './src/components/main'
//export default class App extends React.Component {
export default class App extends Component {
render() {
return (
<View style={styles.view}>
<Header text={"REACT NATIVE"} />
<Text style={styles.textStyle}>Some of the things in here might not look like JavaScript to you.</Text>
<Text style={styles.textContent}>Don't panic. This is the future.</Text>
</View>
);
}
}
const styles = StyleSheet.create({
view: {
backgroundColor:'#f8f8f8',
flex:1
},
textStyle: {
fontSize:24,
textAlign:'center',
marginTop:200,
marginLeft:20,
marginRight:20,
justifyContent:'center',
color:'#0073e6'
},
textContent: {
fontSize:26,
textAlign:'center',
marginTop:10,
marginLeft:20,
marginRight:20,
justifyContent:'center'
}
});