You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

98 lines
2.3 KiB

import { createStackNavigator, createAppContainer } from "react-navigation"
import Splash from "./screens/Splash"
import Banner from "./screens/Banner"
import QuizIndex from "./screens/QuizIndex"
import Quiz from "./screens/Quiz"
import TrueFalse from "./screens/TrueFalse"
import Exam from "./screens/Exam"
import Results from "./screens/Results"
import ResultsTrueFalse from "./screens/ResultsTrueFalse"
import Recap from "./screens/Recap"
import RecapTrueFalse from "./screens/RecapTrueFalse"
import Info from "./screens/Info"
import Dictionary from "./screens/Dictionary"
import { colors, texts} from "./components/Variables"
const MainStack = createStackNavigator({
Splash: {
screen: Splash,
navigationOptions: ({ navigation }) => ({
header: null
})
},
RecapTrueFalse: {
screen: RecapTrueFalse,
navigationOptions: ({ navigation }) => ({
header: null
})
},
Recap: {
screen: Recap,
navigationOptions: ({ navigation }) => ({
header: null
})
},
Results: {
screen: Results,
navigationOptions: ({ navigation }) => ({
header: null
})
},
ResultsTrueFalse: {
screen: ResultsTrueFalse,
navigationOptions: ({ navigation }) => ({
header: null
})
},
Info: {
screen: Info,
navigationOptions: ({ navigation }) => ({
header: null
})
},
Dictionary: {
screen: Dictionary,
navigationOptions: ({ navigation }) => ({
header: null
})
},
Banner: {
screen: Banner,
navigationOptions: ({ navigation }) => ({
header: null
})
},
QuizIndex: {
screen: QuizIndex,
navigationOptions: ({ navigation }) => ({
header: null
})
},
Quiz: {
screen: Quiz,
navigationOptions: ({ navigation }) => ({
header: null
})
},
TrueFalse: {
screen: TrueFalse,
navigationOptions: ({ navigation }) => ({
header: null
// headerTitle: navigation.getParam("title"),
// headerTintColor: colors.white,
// headerStyle: {
// backgroundColor: navigation.getParam("color"),
// borderBottomColor: navigation.getParam("color")
// }
})
},
Exam: {
screen: Exam,
navigationOptions: ({ navigation }) => ({
header: null
})
}
})
export default createAppContainer(MainStack)