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.
59 lines
1.4 KiB
59 lines
1.4 KiB
import React from "react";
|
|
import { ScrollView, StatusBar } from "react-native";
|
|
|
|
import spaceQuestions from "../data/space";
|
|
import westernsQuestions from "../data/westerns";
|
|
import computerQuestions from "../data/computers";
|
|
import aerodynamicQuestions from "../data/aerodynamic";
|
|
|
|
import { RowItem } from "../components/RowItem";
|
|
|
|
export default ({ navigation }) => (
|
|
<ScrollView>
|
|
<StatusBar barStyle="dark-content" />
|
|
<RowItem
|
|
name="Aerodinamica"
|
|
color="#36b1f0"
|
|
onPress={() =>
|
|
navigation.navigate("Quiz", {
|
|
title: "Aerodinamica",
|
|
questions: aerodynamicQuestions,
|
|
color: "#36b1f0"
|
|
})
|
|
}
|
|
/>
|
|
<RowItem
|
|
name="Space"
|
|
color="#36b1f0"
|
|
onPress={() =>
|
|
navigation.navigate("Quiz", {
|
|
title: "Space",
|
|
questions: spaceQuestions,
|
|
color: "#36b1f0"
|
|
})
|
|
}
|
|
/>
|
|
<RowItem
|
|
name="Westerns"
|
|
color="#799496"
|
|
onPress={() =>
|
|
navigation.navigate("Quiz", {
|
|
title: "Westerns",
|
|
questions: westernsQuestions,
|
|
color: "#799496"
|
|
})
|
|
}
|
|
/>
|
|
<RowItem
|
|
name="Computers"
|
|
color="#49475B"
|
|
onPress={() =>
|
|
navigation.navigate("Quiz", {
|
|
title: "Computers",
|
|
questions: computerQuestions,
|
|
color: "#49475B"
|
|
})
|
|
}
|
|
/>
|
|
</ScrollView>
|
|
);
|