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}> <ScrollView style={styles.modulesContainer}>
{modules.map((module) => { {modules.map((module) => {
return( return(
<Pressable onPress={handleSelect}> <Pressable key={module.ModuleCode} onPress={handleSelect}>
<View key={module.ModuleCode} style={styles.modulesItem}> <View style={styles.modulesItem}>
<Text style={styles.text}> <Text style={styles.text}>
{module.ModuleCode} {module.ModuleName} {module.ModuleCode} {module.ModuleName}
</Text> </Text>