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}>
|
<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>
|
||||||
|
|||||||
Reference in new issue
Block a user