mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
Made User Form section
This commit is contained in:
1 parent
d948f126df
commit
755d568090
8 files changed
+365
-61
No files matched your search
@@ -0,0 +1,32 @@
|
||||
import {StyleSheet, Text, View, Pressable} from "react-native";
|
||||
|
||||
const UserItem = ({user, onSelect}) => {
|
||||
// Initialisation -------------
|
||||
// State ----------------------
|
||||
// Handlers -------------------
|
||||
// View -----------------------
|
||||
|
||||
return (
|
||||
<Pressable key={user.UserCode} onPress={() => onSelect(user)}>
|
||||
<View style={styles.usersItem}>
|
||||
<Text style={styles.text}>
|
||||
{user.UserCode} {user.UserName}
|
||||
</Text>
|
||||
</View>
|
||||
</Pressable>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
usersItem: {
|
||||
paddingVertical: 15,
|
||||
borderBottomWidth: 1,
|
||||
borderBottomColor: "lightgray",
|
||||
},
|
||||
text: {
|
||||
fontSize: 18,
|
||||
},
|
||||
});
|
||||
|
||||
export default UserItem;
|
||||
Reference in new issue
Block a user