|
|
@ -19,82 +19,75 @@ 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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<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} onPress={() => |
|
|
|
<RowItem name={texts.piloting_techniques} color={colors.blue} textColor={colors.white} onPress={()=> |
|
|
|
navigation.navigate("Quiz", { |
|
|
|
title: texts.piloting_techniques, |
|
|
|
questions: pilotingTechniquesQuestions, |
|
|
|
color: colors.blue |
|
|
|
})}/> |
|
|
|
|
|
|
|
<RowItem name={texts.exam} color={colors.blue} onPress={() => |
|
|
|
<RowItem name={texts.exam} color={colors.yellow} textColor={colors.black} onPress={() => |
|
|
|
navigation.navigate("Exam", { |
|
|
|
title: texts.exam, |
|
|
|
questions: examQuestions, |
|
|
|
color: colors.blue |
|
|
|
})}/> |
|
|
|
|
|
|
|
<RowItem name="TEST" color={colors.orange} onPress={() => |
|
|
|
navigation.navigate("Quiz", { |
|
|
|
title: "TEST", |
|
|
|
questions: testQuestions, |
|
|
|
color: colors.blue |
|
|
|
})}/> |
|
|
|
|
|
|
|
</ScrollView> |
|
|
|
) |
|
|
|