CLIENT_ID
and CLIENT_SECRET
(from Shutterstock) need to be provided to the auth: { username: CLIENT_ID, password: CLIENT_SECRET }
part of axios GET request in images.js
.
While it is not recommended to store like this on the front-end, I did it here just to keep it simple. In real world, such creds should never be exposed on the client side.
- Type a keyword(s) and tap 'Search Images'.
- A new screen with the search results will appear to load.
- Results for the keyword used.
- Scroll infinitely for all entries. A loading icon appears as it fetches new entries.