-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.ts
More file actions
23 lines (20 loc) · 869 Bytes
/
firebaseConfig.ts
File metadata and controls
23 lines (20 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { initializeApp } from 'firebase/app';
import { initializeAuth, getReactNativePersistence } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
import ReactNativeAsyncStorage from '@react-native-async-storage/async-storage';
// Initialize Firebase
const firebaseConfig = {
apiKey: "AIzaSyAbaNDTkWviU3QwjkUqBYYRYQsA8X31hwU",
authDomain: "parkware1.firebaseapp.com",
databaseURL: "https://parkware1-default-rtdb.firebaseio.com",
projectId: "parkware1",
storageBucket: "parkware1.appspot.com",
messagingSenderId: "153016624909",
appId: "1:153016624909:web:a979b9146fbed76d93b244",
measurementId: "G-R66F2S5DBX"
};
const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
export const auth = initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage)
});