Skip to content

kalashshandilya/proedge-contact-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

useState: A hook that allows you to add state to functional components. It is used to manage the following states:

contacts: An array that holds the list of contacts. search: A string that holds the value of the search input. selectedContact: An object that represents the currently selected contact. useEffect: A hook that allows you to perform side effects in functional components. It is used to load contacts when the component mounts.

TextInput: A component used to create an input field for user text input. It is used for the search input.

FlatList: A component used to render a scrolling list of items efficiently. It is used to display the list of filtered contacts.

TouchableOpacity: A component used to create a pressable area that gives feedback to the user. It is used to handle contact press events.

Modal: A component used to create a modal dialog box. It is used to display additional details of a selected contact.

Text: A component used to render text in React Native. It is used to display contact names, numbers, and the "Dismiss" text.

StyleSheet: An object used to create a stylesheet for styling React Native components. It is used to define the styles for various components in the app.

The loadContacts function is responsible for loading the contacts data into the application. In this code, it is simulating the process of loading contacts from a phone.

Inside the loadContacts function, there is an array called mockContacts that represents the contacts data. Each contact is represented as an object with two properties: name and number.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors