Create a search input text where users can type in and get results straight away, without submit required. Results will list Github users like the mock below.
- Query against Github Api: GET https://api.github.com/search/users?q={USER}.
- Try to not add any dependency library on a freshly created react native app (Only testing libraries accepted).
- Don't forget to check against modern ways to make HTTP requests on frontend side.
- Manage edge cases:
- No results
- Github api rate limit
- User type in quickly and going back and forth on his search
- Add a checkbox on Card items
- Add a checkbox to select all cards with the number of selected items
- Add two actions available if there is a the selection
- Duplicate items
- Delete items
These actions are only made in front-end and will be cancelled when the search change
Add an edit mode
-
When edit mode is on:
- display checkboxes on cards
- display the select all checkbox
- display duplicate and delete actions
-
When edit mode is off:
- hide checkboxes on cards
- hide the select all checkbox
- hide duplicate and delete actions
- Use official React Native CLI to generate a new project (can use TypeScript template if you want)
- Push your code to a Github repository
- Document what you've done
- Quality of the code
- Scalability of the algorithm
- Usage of good practices and modern javascript
- Respect of the mock
- Types
- Tests