mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
moved key to pressable
This commit is contained in:
1 parent
9236cb3f68
commit
b3c3816220
1 file changed
+2
-2
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user