This project is intended to demonstrate how to use React Query and Firestore together in a simple Todo React Native app. For a complete walkthrough, read this post.
- Go to console.firebase.google.com and create a firestore project with analytics disabled
- Add click iOS+ to add the iOS integration
- Use
com.todoappas the bundle id.
- Use
- Add Google Authentication to the project
- Download the
GoogleService-Info.plistand place it in the top directory of this project
- Download the
- Create a Firestore database in firebase first via console.firebase.google.com
- Click "Start collection", name the collection "todos", and create a sample document with fields
title(string),isDone(boolean), anddateCreated(Date) fields. - Open
GoogleService-Info.plist, and copy theCLIENT_IDvalue and setEXPO_FIREBASE_CLIENT_IDto that value in the .env file.
npm install
eas build --profile development-simulator --platform iosOnce the eas build has completed, download it and drag it into your simulator of choice to run.
Since this is just an expo project, run with
npm startOpen an iOS simulator, log in with a google account of your choice, and you will see the Todo App demo.
Create Todos by clicking the "+" in the upper right of the nav bar.
Having issues with the project? Submit an issue in Github
