forked from FuelupEducationIndia/fuelupeducation-rn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
45 lines (38 loc) · 1.89 KB
/
App.tsx
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
import { createStackNavigator } from '@react-navigation/stack'
import React from 'react'
import RNBootSplash from 'react-native-bootsplash'
import { AppRoutes, stackScreenOptions } from './src/types/navigation'
import AuthNavigator from './src/Authentication'
import TeachersNavigator from './src/Teachers'
import Profiletab from './src/Teachers/TeacherBottomTabs/Profiletab'
import { MainProfiletab } from './src/Teachers/TeacherBottomTabs'
import { AssignmentSummary } from './src/components/Courses'
import { CreateAssignment } from './src/components/Courses'
import { ReviewSummary } from './src/components/Courses'
import { ReviewAssignment } from './src/components/Courses'
import { GradingSummary } from './src/components/Courses'
import { GradingAssignment } from './src/components/Courses'
import CreateQuiz from './src/components/CreateQuiz'
const AppStack = createStackNavigator<AppRoutes>()
const App = () => {
React.useEffect(() => {
RNBootSplash.hide({ fade: true })
}, [])
return (
<AppStack.Navigator
initialRouteName='Authentication'
screenOptions={stackScreenOptions}>
<AppStack.Screen name='Authentication' component={AuthNavigator} />
<AppStack.Screen name='Teacher' component={TeachersNavigator} />
<AppStack.Screen name='Profiletab' component={Profiletab} />
<AppStack.Screen name='MainProfiletab' component={MainProfiletab} />
<AppStack.Screen name='AssignmentSummary' component={AssignmentSummary} />
<AppStack.Screen name='Create Assignment' component={CreateAssignment} />
<AppStack.Screen name='Review assignment' component={ReviewAssignment} />
<AppStack.Screen name='Review Summary' component={ReviewSummary} />
<AppStack.Screen name='Grading Assignmnet' component={GradingAssignment} />
<AppStack.Screen name='Grading Summary' component={GradingSummary} />
</AppStack.Navigator>
)
}
export default App