moved key to pressable

This commit is contained in:
bobbert committed 2025-10-25 18:28:50 +01:00
1 parent 9236cb3f68
commit b3c3816220
1 file changed
+2 -2
+2 -2
View File
@@ -18,8 +18,8 @@ export const ModuleListScreen = () => {
<ScrollView style={styles.modulesContainer}>
{modules.map((module) => {
return(
<Pressable onPress={handleSelect}>
<View key={module.ModuleCode} style={styles.modulesItem}>
<Pressable key={module.ModuleCode} onPress={handleSelect}>
<View style={styles.modulesItem}>
<Text style={styles.text}>
{module.ModuleCode} {module.ModuleName}
</Text>