-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
53 lines (47 loc) · 1.58 KB
/
Copy pathApp.js
File metadata and controls
53 lines (47 loc) · 1.58 KB
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
import React from 'react';
import { ScrollView, StatusBar} from 'react-native';
import {Button, ListItem} from 'react-native-elements'
import {createStackNavigator} from 'react-navigation'
import CourseList from './components/CourseList'
import ModuleList from './components/ModuleList'
import LessonList from './components/LessonList'
import TopicList from './components/TopicList'
import WidgetList from './components/WidgetList'
import AssignmentEditor from './components/AssignmentEditor'
import ExamEditor from './components/ExamEditor'
import FixedHeader from './elements/FixedHeader'
import MCQEditor from './components/MCQEditor'
import FIBEditor from './components/FIBEditor'
import TFEditor from './components/TFEditor'
import EssayEditor from './components/EssayEditor'
class Home extends React.Component {
static navigationOptions = {
title: 'Home'
}
constructor(props){
super(props)
}
render(){
return(
<ScrollView>
<StatusBar barStyle="light-content"/>
<FixedHeader/>
<Button title="Courses"
onPress = {() => this.props.navigation
.navigate('CourseList') } />
</ScrollView>
)
}
}
const App = createStackNavigator({
Home, CourseList, ModuleList, LessonList, TopicList, WidgetList, AssignmentEditor, ExamEditor, MCQEditor, TFEditor, FIBEditor, EssayEditor
});
export default App;
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: '#fff',
// alignItems: 'center',
// justifyContent: 'center',
// },
// });