{"id":21835779,"url":"https://github.com/vtex/workshop-react-native","last_synced_at":"2025-04-14T09:20:00.356Z","repository":{"id":68366172,"uuid":"80372492","full_name":"vtex/workshop-react-native","owner":"vtex","description":"Workshop to teach React Native by doing a Todo App","archived":false,"fork":false,"pushed_at":"2017-02-09T14:05:58.000Z","size":320,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-14T09:19:52.954Z","etag":null,"topics":["firebase","react","reactnative","workshop","xp-people-places"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vtex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-29T21:03:47.000Z","updated_at":"2019-05-24T20:30:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba035459-cd7a-4bd8-b945-f77b679135b8","html_url":"https://github.com/vtex/workshop-react-native","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fworkshop-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fworkshop-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fworkshop-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtex%2Fworkshop-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtex","download_url":"https://codeload.github.com/vtex/workshop-react-native/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852186,"owners_count":21171843,"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":["firebase","react","reactnative","workshop","xp-people-places"],"created_at":"2024-11-27T20:24:41.070Z","updated_at":"2025-04-14T09:20:00.346Z","avatar_url":"https://github.com/vtex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native's Workshop\n\nThe idea is create a simple Todo App for iOS and Android, that saves and retrieves data from firebase.\n\n## Setup a new app to start the Workshop\n\n```shell\nnpm install -g react-native-cli yarn\n```\n\n```shell\nreact-native init RNTodoWorkshop\n```\n\nCreate your App.js with Hello World content and edit your index.android.js and index.ios.js to use it.\n\nCopy these files and folders from this repository to yours:\n\n* .babelrc\n* .eslintrc\n* .flowconfig\n* .gitignore\n* package.json\n* \\_\\_tests\\_\\_/\n* assets/\n* backup/\n* utils/\n\nExecute:\n\n```shell\nyarn\n```\n\n## Setup this app to test\n\nYou can clone this project and setup to run the final version of the proposed Todo App.\n\nYou can also checkout a specific commit to see each version of this app.\n\nTo setup this project:\n\n```shell\nnpm install -g yarn\nyarn\n```\n\n## To run the app on iOS\n\nYou can either run the app as a normal project on XCode or run on terminal:\n\n```shell\nreact-native run-ios\n```\n\nThis will run the app on an iOS simulator\n\nTo run the app on an iOS device see: https://facebook.github.io/react-native/docs/running-on-device.html\n\n## To run the app on Android\n\nif packager is not already running, run on terminal:\n\n```shell\nnpm start\n```\n\nYou can either run the app as a normal project on Android Studio or run on terminal:\n\n```shell\nreact-native run-android\n```\n\nThis will run the app on an Android device or Genymotion\n\nFor more options see: https://facebook.github.io/react-native/docs/running-on-device.html\n\n## Workshop\n\nThe idea of this workshop is execute each of the following tasks to create a Todo App:\n\n1. Configure a react native project and add a image and custom Status Bar to it\n2. Configure [firebase](#firebase) and see a List of tasks appear on screen\n3. Create a text field that add new tasks\n4. Add the ability to delete a given task\n5. Add the ability to mark a task as completed or uncompleted\n6. Add loading to wait for list of tasks to appear\n7. Add filters to tasks\n8. Add the ability to inline edit a given task\n\nBonus tasks:\n\n1. Show the count of active tasks remaining (uncompleted tasks)\n2. Create a toggle all tasks to be completed or uncompleted\n3. Add cache to tasks so it can work offline\n\n## Firebase\n\nConfigure firebase by going on: https://console.firebase.google.com/?pli=1 with a valid google account.\n\nThen create a new project.\n\nAfter the project is created, click on \"Add firebase to your webapp\" option.\n\nCopy the values to utils/data.js\n\nImport backup/workshop-rn-todo-initial-data.json to your database.\n\nAnd override the rules of your database to:\n\n```javascript\n{\n  \"rules\": {\n    \".read\": true,\n    \".write\": true\n  }\n}\n```\n\nYou can ignore any warnings after that.\n\n## Flow\n\nSee official docs for learning how to use flow: https://flowtype.org/docs/builtins.html\n\n## Flexbox\n\nTo start learning flexbox see this article: https://medium.freecodecamp.com/an-animated-guide-to-flexbox-d280cf6afc35\n\nSee this guide for a more complete overview of flexbox: https://css-tricks.com/snippets/css/a-guide-to-flexbox/\n\n## Reference\n\nThis workshop was based on this egghead course: https://egghead.io/courses/build-a-react-native-todomvc-application\n\n## Other React Native examples\n\nSee this repository for other examples: https://github.com/guilhermebruzzi/rnExamples\n\n## Presentation\n\nYou can download the original presentation of this workshop here:\n\nKeynote (mac): https://www.dropbox.com/s/subacw2atz0vklf/RNVTEX_Workshop.key?dl=0\n\nPDF: https://www.dropbox.com/s/iiizrai57lc4gud/RNVTEX_Workshop.pdf?dl=0\n\n## Video of the last workshop Presentation\n\nWorkshop on 08 of february of 2017 at VTEX: https://www.youtube.com/watch?v=uXkgDXrHVkg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtex%2Fworkshop-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtex%2Fworkshop-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtex%2Fworkshop-react-native/lists"}