{"id":15098153,"url":"https://github.com/ionic-team/tutorial-photo-gallery-react","last_synced_at":"2026-03-07T03:02:58.296Z","repository":{"id":38991297,"uuid":"233694691","full_name":"ionic-team/tutorial-photo-gallery-react","owner":"ionic-team","description":"Photo Gallery Tutorial: Ionic React and Capacitor","archived":false,"fork":false,"pushed_at":"2024-01-31T11:28:22.000Z","size":2249,"stargazers_count":92,"open_issues_count":4,"forks_count":85,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-01-29T22:35:52.646Z","etag":null,"topics":["capacitor","ionic","react"],"latest_commit_sha":null,"homepage":"https://ionicframework.com/docs/react/your-first-app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ionic-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-13T21:13:06.000Z","updated_at":"2025-12-11T01:05:22.000Z","dependencies_parsed_at":"2024-09-15T16:05:58.996Z","dependency_job_id":"5da644f1-cfbc-4981-bd28-2858d2c5fc43","html_url":"https://github.com/ionic-team/tutorial-photo-gallery-react","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ionic-team/tutorial-photo-gallery-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Ftutorial-photo-gallery-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Ftutorial-photo-gallery-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Ftutorial-photo-gallery-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Ftutorial-photo-gallery-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionic-team","download_url":"https://codeload.github.com/ionic-team/tutorial-photo-gallery-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionic-team%2Ftutorial-photo-gallery-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30206339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capacitor","ionic","react"],"created_at":"2024-09-25T16:44:02.920Z","updated_at":"2026-03-07T03:02:58.275Z","avatar_url":"https://github.com/ionic-team.png","language":"TypeScript","readme":"# Build Your First Ionic App: Photo Gallery (Ionic React and Capacitor)\n\nGet started with Ionic by building a photo gallery app that runs on iOS, Android, and the web - with just one codebase. This is the complete project referenced in the [\"Your First App: React\" guide](https://ionicframework.com/docs/react/your-first-app). Follow along to create a complete CRUD (create-read-update-delete) experience.\n\nPowered by [Ionic React](https://ionicframework.com/docs/react) (web app) and [Capacitor](https://capacitor.ionicframework.com) (native app runtime).\n\n## How It Works\n\nAfter the user navigates to Tab 2 (Photos), they can tap/click on the camera button to open up the device's camera. After taking or selecting a photo, it's stored permanently into the device's filesystem. When the user reopens the app at a later time, the photo images are loaded from the filesystem and displayed again in the gallery. The user can tap on a photo to be presented with the option to remove the photo.\n\n## Feature Overview\n* App framework: [React](https://reactjs.org/)\n* UI components: [Ionic Framework](https://ionicframework.com/docs/components)\n  * Camera button: [Floating Action Button (FAB)](https://ionicframework.com/docs/api/fab)\n  * Photo Gallery display: [Grid](https://ionicframework.com/docs/api/grid)\n  * Delete Photo dialog: [Action Sheet](https://ionicframework.com/docs/api/action-sheet) \n* Native runtime: [Capacitor](https://capacitor.ionicframework.com)\n  * Taking photos: [Camera API](https://capacitor.ionicframework.com/docs/apis/camera)\n  * Writing photo to the filesystem: [Filesystem API](https://capacitor.ionicframework.com/docs/apis/filesystem)\n  * Storing photo gallery metadata: [Preferences API](https://capacitor.ionicframework.com/docs/apis/preferences)\n\n## Project Structure\n* Tab2 (Photos) (`src/pages/Tab2.tsx`): Photo Gallery UI and basic logic.\n* usePhotoGallery Hook (`src/hooks/usePhotoGallery.ts`): Logic encapsulating Capacitor APIs, including Camera, Filesystem, and Preferences.\n\n## How to Run\n\n\u003e Note: It's highly recommended to follow along with the [tutorial guide](https://ionicframework.com/docs/react/your-first-app), which goes into more depth, but this is the fastest way to run the app. \n\n0) Install Ionic if needed: `npm install -g @ionic/cli`.\n1) Clone this repository.\n2) In a terminal, change directory into the repo: `cd photo-gallery-capacitor-react`.\n3) Install all packages: `npm install`.\n4) Run on the web: `ionic serve`.\n5) Run on iOS or Android: See [here](https://ionicframework.com/docs/building/running).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionic-team%2Ftutorial-photo-gallery-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionic-team%2Ftutorial-photo-gallery-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionic-team%2Ftutorial-photo-gallery-react/lists"}