mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-08 04:40:20 +00:00
Added Initial Modules to module list screen
This commit is contained in:
1 parent
5075120502
commit
1872d450c6
3 files changed
+101
-5
No files matched your search
@@ -16,10 +16,9 @@ const Screen = ({children}) => {
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
screen: {
|
||||
padding: 15,
|
||||
flex: 1,
|
||||
backgroundColor: "#fff",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -1,14 +1,30 @@
|
||||
import { StyleSheet, Text } from "react-native";
|
||||
import { StyleSheet, Text, View } from "react-native";
|
||||
import Screen from "../layout/Screen";
|
||||
|
||||
import initialModules from "../../data/modules.js";
|
||||
|
||||
|
||||
export const ModuleListScreen = () => {
|
||||
// Initialisation -------------
|
||||
const modules = initialModules;
|
||||
|
||||
// State ----------------------
|
||||
// Handlers -------------------
|
||||
// View -----------------------
|
||||
return (
|
||||
<Screen style={styles.container}>
|
||||
<Text>List</Text>
|
||||
<Screen>
|
||||
<View>
|
||||
{modules.map((module) => {
|
||||
return(
|
||||
<View key={module.ModuleCode}>
|
||||
<Text>
|
||||
{module.ModuleCode} {module.ModuleName}
|
||||
</Text>
|
||||
</View>
|
||||
)
|
||||
})
|
||||
}
|
||||
</View>
|
||||
</Screen>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user