This project is a React Native application that serves as an image gallery, fetching recent images from Flickr and displaying them in an organized format. The app also implements image caching to ensure the gallery is available offline and maintains the latest updates when the API response changes.
- 🖼️ Recent Images: Fetches and displays the latest images from Flickr on the homepage using Flickr's API.
- 📶 Offline Support: Caches image links to ensure the gallery is available even without an internet connection.
- 🔄 Dynamic Updates: Automatically refreshes the homepage when there is a change in the API response, similar to Instagram's behavior.
- 🌟 User-Friendly Navigation: Includes a left navbar with a "Home" option for ease of use.
- Framework: React Native
- API: Flickr API
- Caching: Async Storage (to cache image links)
-
Endpoint URL:
https://api.flickr.com/services/rest/?method=flickr.photos.getRecent&per_page=20&page=1&format=json&nojsoncallback=1&extras=url_s
-
Response Format: JSON
-
Extras Parameter:
url_s
ensures image URLs are included in the response.
- Cache Links: Image links are saved in Async Storage.
- Offline Loading: If the app is offline, cached links are retrieved and displayed.
- API Refresh: On re-opening the app, the API is queried, and changes in the response update the view.
- The homepage showcases recent images in a visually appealing grid.
- A left sidebar with a "Home" option provides seamless navigation.
- Offline support ensures consistent user experience.
-
Clone the Repository:
git clone https://github.com/your-repo/image-gallery-app.git cd image-gallery-app
-
Install Dependencies:
npm install
-
Run the App:
npx react-native run-android
or
npx react-native run-ios
- Build the APK (Optional):
npx react-native run-android --variant=release
To complete the project, submit the following:
- 🎥 Functionality Video: A 1-minute video demonstrating the app's functionality.
- 📂 GitHub Repository: Only provide the repository if explicitly requested.
- 💡 Caching Tip: Caching image links ensures images are loaded automatically once the links are cached.
- 🔗 API Reference:
Flickr API Documentation