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.

33 lines
868 B

6 years ago
import { createStackNavigator, createAppContainer } from "react-navigation"
6 years ago
import QuizIndex from "./screens/QuizIndex"
import Quiz from "./screens/Quiz"
import { colors, texts} from "./components/Variables"
const MainStack = createStackNavigator({
QuizIndex: {
screen: QuizIndex,
navigationOptions: {
6 years ago
headerTitle: texts.quizzes,
headerTintColor: colors.white,
backgroundColor: colors.dark_blue,
headerStyle: {
backgroundColor: colors.dark_blue
}
}
},
Quiz: {
screen: Quiz,
navigationOptions: ({ navigation }) => ({
headerTitle: navigation.getParam("title"),
6 years ago
headerTintColor: colors.white,
headerStyle: {
backgroundColor: navigation.getParam("color"),
borderBottomColor: navigation.getParam("color")
}
})
}
6 years ago
})
6 years ago
export default createAppContainer(MainStack)