update: Home Screen iot button

parent 92df6d39
...@@ -19,6 +19,8 @@ import { ...@@ -19,6 +19,8 @@ import {
} from "@expo/vector-icons"; } from "@expo/vector-icons";
import { MaterialIcons } from "@expo/vector-icons"; import { MaterialIcons } from "@expo/vector-icons";
import { gamification } from "./gamification"; import { gamification } from "./gamification";
import { IotScreen } from "./IotScreen";
import { BottomTab } from "../Navigations/BottomTab"; import { BottomTab } from "../Navigations/BottomTab";
// import BottomTab from "../Navigations/BottomTab"; // import BottomTab from "../Navigations/BottomTab";
export function HomeScreen({ navigation }) { export function HomeScreen({ navigation }) {
...@@ -73,7 +75,7 @@ export function HomeScreen({ navigation }) { ...@@ -73,7 +75,7 @@ export function HomeScreen({ navigation }) {
<View > <View >
<TouchableOpacity <TouchableOpacity
style={styles.IOT} style={styles.IOT}
onPress={() => navigation.navigate("gamification")} onPress={() => navigation.navigate("IotScreen")}
> >
<Ionicons name="game-controller" size={24} color="black" /> <Ionicons name="game-controller" size={24} color="black" />
<Text style={styles.buttonText}>IOT</Text> <Text style={styles.buttonText}>IOT</Text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment