diff --git a/src/components/screens/ModuleListScreen.js b/src/components/screens/ModuleListScreen.js index e9a7e8d..28133ce 100644 --- a/src/components/screens/ModuleListScreen.js +++ b/src/components/screens/ModuleListScreen.js @@ -1,4 +1,4 @@ -import { StyleSheet, Text, View } from "react-native"; +import {StyleSheet, Text, ScrollView, View, Pressable} from "react-native"; import Screen from "../layout/Screen"; import initialModules from "../../data/modules.js"; @@ -10,25 +10,42 @@ export const ModuleListScreen = () => { // State ---------------------- // Handlers ------------------- + const handleSelect = () => alert("Item selected"); + // View ----------------------- return ( - + {modules.map((module) => { return( - - - {module.ModuleCode} {module.ModuleName} - - + + + + {module.ModuleCode} {module.ModuleName} + + + ) }) } - + ); }; -const styles = StyleSheet.create({}); +const styles = StyleSheet.create({ + modulesContainer: { + marginTop: 20, + }, + modulesItem: { + padding: 15, + marginBottom: 10, + borderTopWidth: 1, + borderTopColor: "light grey", + // borderRadius: 15, + }, + text: { + }, +}); export default ModuleListScreen; \ No newline at end of file