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.
87 lines
3.2 KiB
87 lines
3.2 KiB
import React from "react"
|
|
import { ScrollView, StatusBar, } from "react-native"
|
|
|
|
import aerodynamicsQuestions from "../data/aerodynamics"
|
|
import firstAidQuestions from "../data/firstAid"
|
|
import flightSafetyQuestions from "../data/flightSafety"
|
|
import instrumentsQuestions from "../data/instruments"
|
|
import legislationQuestions from "../data/legislation"
|
|
import materialsQuestions from "../data/materials"
|
|
import meteorologyQuestions from "../data/meteorology"
|
|
import physiopathologyQuestions from "../data/physiopathology"
|
|
import pilotingTechniquesQuestions from "../data/pilotingTechniques"
|
|
|
|
import { Button, ButtonContainer } from "../components/Button"
|
|
import { RowItem } from "../components/RowItem"
|
|
import { colors, texts} from "../components/Variables"
|
|
import { examQuestions } from "../components/ExamQuestions"
|
|
|
|
export default ({ navigation }) => (
|
|
<ScrollView style={[{ backgroundColor: colors.dark_blue }]}>
|
|
<StatusBar barStyle="dark-content" />
|
|
<RowItem name={texts.aerodynamics} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.aerodynamics,
|
|
questions: aerodynamicsQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.first_aid} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.first_aid,
|
|
questions: firstAidQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.flight_safety} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.flight_safety,
|
|
questions: flightSafetyQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.instruments} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.instruments,
|
|
questions: instrumentsQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.legislation} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.legislation,
|
|
questions: legislationQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.materials} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.materials,
|
|
questions: materialsQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.meteorology} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.meteorology,
|
|
questions: meteorologyQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.physiopathology} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.physiopathology,
|
|
questions: physiopathologyQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
<RowItem name={texts.piloting_techniques} color={colors.blue} textColor={colors.white} onPress={()=>
|
|
navigation.navigate("Quiz", {
|
|
title: texts.piloting_techniques,
|
|
questions: pilotingTechniquesQuestions,
|
|
color: colors.blue
|
|
})}/>
|
|
|
|
|
|
</ScrollView>
|
|
)
|