Things to do:
-
Make a better layout, improve UI with React native elements library.
-
Separate Expandablecomponent away from app functional class to make it reusable. i have many usestate (follow and blocked) with diferents cases that could be separated.(SOC)
-
Add empty layout when there's no results or server problems.
-
Add unfollow funcionality.
-
Separate all in screens(folder) with react navigation.
-
Add images and more info from the user in the list.
-
I'll try to create hooks for fetching data and use it as state, this way we can reuse in other parts of the app.
-
Include redux to keep data in sync and responsive having a single source of truth.
-
Add database store to see data offline, redux asynctorage middleware.
-
Separate Constants to a diferent file.
-
Make nice and reusable style, now is hardcoded.
-
Use Jest, never use it but id like to try. must be fun.
Hope you find it useful!