-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebaseConfig.js
26 lines (22 loc) · 928 Bytes
/
firebaseConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// firebaseConfig.js
import { initializeApp } from 'firebase/app';
import { getDatabase } from 'firebase/database';
import { initializeAuth, getReactNativePersistence } from 'firebase/auth';
import AsyncStorage from '@react-native-async-storage/async-storage';
// Replace with your own Firebase config!
const firebaseConfig = {
apiKey: "AIzaSyAR24CQPymO-X5-6L-JeKRGfyqXm3n8MOs",
authDomain: "totob12-loco.firebaseapp.com",
projectId: "totob12-loco",
storageBucket: "totob12-loco.firebasestorage.app",
messagingSenderId: "1079141322842",
appId: "1:1079141322842:web:ea9606c2ad097ea3f30863"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
// Set up Auth with persistence:
export const auth = initializeAuth(app, {
persistence: getReactNativePersistence(AsyncStorage),
});
// Initialize and export the Realtime Database instead of Firestore:
export const db = getDatabase(app);