import React from 'react'; import { ReactElement } from 'react'; import { StyleSheet, } from 'react-native'; import { ListItem, Button } from 'react-native-elements' import { User } from '../models/UserModel'; import { DialogAction } from '../models/CommonModel'; import Icon from 'react-native-vector-icons/FontAwesome'; /** * @description holds user list item */ // User properties type UserProps = { user: User, key: String } // Navigation properties type NavigationProps = { navigation: any } // Callback properties / methods type CallbackProps = { onCallback(user: User, action: DialogAction) } type Props = UserProps & CallbackProps & NavigationProps; /** * User List Item Component * @param props properties */ const UserPage: (props: Props) => ReactElement = (props: Props) => { const { user, onCallback, navigation } = props; return (