|
|
||
|---|---|---|
| .idea | ||
| .vscode | ||
| app | ||
| assets | ||
| components | ||
| constants | ||
| functions | ||
| lib | ||
| providers | ||
| services | ||
| types | ||
| .env.example | ||
| .firebaserc | ||
| .gitignore | ||
| README.md | ||
| app.json | ||
| bun.lock | ||
| eas.json | ||
| eslint.config.js | ||
| firebase-debug.log | ||
| firebase.json | ||
| google-services.json | ||
| package.json | ||
| tsconfig.json | ||
README.md
Expo Starter
Starter Expo avec Firebase Auth et Firestore.
Setup
- Installe les dépendances
npm install
- Crée ton fichier d'environnement
cp .env.example .env
- Remplis ton
.envavec les valeurs de ton projet Firebase
EXPO_PUBLIC_FIREBASE_API_KEY=
EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN=
EXPO_PUBLIC_FIREBASE_PROJECT_ID=
EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET=
EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
EXPO_PUBLIC_FIREBASE_APP_ID=
Lancer le projet
npx expo prebuild --clean && npx expo run android
Structure utile
app/: écrans Expo Routercomponents/common/: composants partagésconstants/: palette, spacing, radius, fontslib/firebase.ts: initialisation Firebaselib/firestore.ts: refs et converters Firestoreproviders/AuthProvider.tsx: état d'auth globalservices/auth.ts: login, register, logout