Didnt follow App.js And ModuleListScreen.js instructions properly last time, had content of files the wrong way round, corrected that.

This commit is contained in:
bobbert committed 2025-10-24 16:36:57 +01:00
1 parent 7d872917fc
commit 6dccfde7da
4 files changed
+105 -70

No files matched your search

+16 -21
View File
@@ -1,31 +1,26 @@
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
const Stack = createNativeStackNavigator();
export const ModuleListScreen = () => {
// Initialisation -------------
// State ----------------------
// Handlers -------------------
// View -----------------------
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="ModuleListScreen">
<Stack.Screen
name="ModuleListScreen"
component={ModuleListScreen}
options={{ title: "List Modules" }}
/>
</Stack.Navigator>
</NavigationContainer>
<View style={styles.container}>
<Text>List</Text>
<StatusBar style="auto" />
</View>
);
}
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
export default ModuleListScreen;
export default ModuleListScreen;