Professional Documents
Culture Documents
Sadsjryjtc74tv8
Sadsjryjtc74tv8
Submission Instructions:
1. You may solve coding question on your computer and then copy in the word file
2. Please make one world file as a solution and post in Google Class Room
3. The name of the file should be as follows
S2_Lab_YourName_YourRollNumber.docx
and, further one can get the detail of a user by sending a get http request to the API end
point (https://reqres.in/api/users/<id>).
Write a React Native App that should consists of the 2 screens: List Screen and User
Screen. When the app starts, it should display List Screen. Use Navigation API for
managing screens and routing.
List Screen:
1. Send an http request to the server when the App starts using useEffect React Hook
[2 Credits]
2. Parse the http response and save in React state using useState React Hook
[2 Credits]
3. Display results (only fist name, last name and email of each user) in the FlatList
[2 Credits]
4. Show the activity loader while data is being loaded
[1 Credits]
5. Show error message if there is an error while loading data
[1 Credits]
6. When user clicks on any user, its detail will be opened in a new screen called User
Screen. Pass user id as routing parameter.
[2 Credits]
User Screen:
1. Extract user id parameter from the Route.
[1 Credits]
2. Send an http request to the server to get detail of user using useEffect React Hook
[2 Credits]
3. Display detail of User (all fields and avatar) in User screen
[2 Credits]