{"id":18450965,"url":"https://github.com/patrixr/demo-react-native","last_synced_at":"2026-04-24T22:32:35.847Z","repository":{"id":38946787,"uuid":"202983842","full_name":"patrixr/demo-react-native","owner":"patrixr","description":"A demo application using the jsonplaceholder.typicode.com API","archived":false,"fork":false,"pushed_at":"2022-12-06T21:41:48.000Z","size":1567,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T14:04:34.976Z","etag":null,"topics":["demo-app","react-native","swipe"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrixr.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}},"created_at":"2019-08-18T09:28:47.000Z","updated_at":"2020-07-10T20:23:49.000Z","dependencies_parsed_at":"2022-09-18T21:03:52.419Z","dependency_job_id":null,"html_url":"https://github.com/patrixr/demo-react-native","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrixr%2Fdemo-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrixr%2Fdemo-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrixr%2Fdemo-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrixr%2Fdemo-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrixr","download_url":"https://codeload.github.com/patrixr/demo-react-native/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249458348,"owners_count":21275684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["demo-app","react-native","swipe"],"created_at":"2024-11-06T07:27:07.062Z","updated_at":"2026-04-24T22:32:30.814Z","avatar_url":"https://github.com/patrixr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A React Native Sample\n\n[![forthebadge](https://forthebadge.com/images/badges/check-it-out.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/uses-badges.svg)](https://forthebadge.com)\n\nHere is my first react native app, it is a mini social app based on the [JSON Placeholder](https://jsonplaceholder.typicode.com) API\n\nThis project runs on the [Expo CLI](https://docs.expo.io/versions/latest/workflow/expo-cli/)\n\n## Main Components\n\n### Home page: Card Swipe (a la Tinder)\n\n* Swiping **left** discards the profile\n* Swiping **right** opens their profile page\n\n\u003cimg width=\"386\" alt=\"Screenshot 2019-08-18 at 5 35 26 PM\" src=\"https://user-images.githubusercontent.com/1822532/63222860-96009880-c1df-11e9-82af-6f38a3312501.png\"\u003e\n\n### Profile Page\n\n--\u003e This page opens up when you swipe **right** on a card\n\nIt contains the following tabs:\n- A TODO list\n- The user's posts\n- The users photos, categorized in albums\n\n\u003cimg width=\"373\" alt=\"Screenshot 2019-08-18 at 5 36 53 PM\" src=\"https://user-images.githubusercontent.com/1822532/63222882-ce07db80-c1df-11e9-969f-1757780282a8.png\"\u003e\n\n## Requirements\n\n- `YARN`\n- `NODE`\n\n## Running the app\n\nInstall the dependencies:\n\n`$\u003e yarn install`\n\nRun the app:\n\n`$\u003e yarn start`\n\nThis will run an expo live server that can be used to load the app on either a simulator or a phone\n\n## Notes on testing\n\nGiven that the Swipe feature is pretty animation-heavy. I'd recommend testing on a phone, as the simulator can possibly get a bit sluggish.\n\nSteps:\n\n- Install the `Expo` app on your phone\n- Ensure your phone and computer are on the same network\n- Run the server using `yarn start`\n- A QR Code will appear on the screen, scan it with the Expo app\n- The app will load and start on your phone\n\n## Notes on the code\n\n- Wrote a post about this usage of hooks [here](https://dev.to/patrixr/react-writing-a-custom-api-hook-l16)\n- Given it's a demo, the strings have not been stored in any localization file\n- Despite the API returning static data, the pages were still written as if the data was susceptible to change. Meaning there is not a single preload at startup. The pages can still request data multiple time over the lifecycle of the application (although I added a cache to avoid pointless latency) \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrixr%2Fdemo-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrixr%2Fdemo-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrixr%2Fdemo-react-native/lists"}