-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.js
71 lines (66 loc) · 2.09 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from "react";
import { AppRegistry, StyleSheet, Text, View } from "react-native";
import ViewSample from "./sample/view";
import TextSample from "./sample/text";
import ImageSample from "./sample/image";
import ButtonSample from "./sample/button";
import FlexSample from "./sample/flex";
import ListItem from "./sample/listItem";
import ScrollView from "./sample/scrollView";
import FlatList from "./sample/flatList";
import List from "./sample/list";
import RefreshSample from "./sample/refresh";
import UserList from "./sample/userList";
import ControlledInput from "./sample/controlledInput";
import Routes from "./sample/routes";
import LifeCycle from "./sample/lifeCycle";
import Counter from "./sample/counter";
import LotsOfGreetings from "./sample/LotsOfGreetings";
import FetchSample from "./sample/fetch";
import FetchList from "./sample/fetchList";
import Drawer from "./sample/drawer";
import Tabs from "./sample/Tabs";
import WebsocketSample from "./sample/websocket";
import AsyncStorageSample from "./sample/asyncStorage";
import AnswerListItem from "./answer/listItem";
import AnswerList from "./answer/list";
import AnswerFetchList from "./answer/fetchList";
import AnswerUserList from "./answer/userList";
import AnsCounter from "./answer/counter";
import AnsLifeCycle from "./answer/lifeCycle";
import AnsLotsOfGreeting from "./answer/LotsOfGreetings";
import AnsControlledInput from "./answer/controlledInput";
import AnsRoutes from "./answer/routes";
export default class sample1 extends Component {
render() {
return (
<View style={{flex: 1, marginTop: 20 }}>
<Routes />
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "#F5FCFF"
},
welcome: {
fontSize: 20,
textAlign: "center",
margin: 10
},
instructions: {
textAlign: "center",
color: "#333333",
marginBottom: 5
}
});
AppRegistry.registerComponent("sample1", () => sample1);