// src/shared/lib/firebase/config.ts import { initializeApp, getApps, getApp } from 'firebase/app'; import { initializeAuth, getReactNativePersistence, } from 'firebase/auth'; import AsyncStorage from '@react-native-async-storage/async-storage'; import { getFirestore } from 'firebase/firestore'; const firebaseConfig = { apiKey: 'AIzaSyANl7xew69Y39IH1PrRL6rBbWs6qDgz7qM', authDomain: 'appoficinas-f8c8d.firebaseapp.com', projectId: 'appoficinas-f8c8d', storageBucket: 'appoficinas-f8c8d.firebasestorage.app', messagingSenderId: '734167380764', appId: '1:734167380764:web:44ca60953f0624edc300d9', }; const app = getApps().length ? getApp() : initializeApp(firebaseConfig); export const auth = initializeAuth(app, { persistence: getReactNativePersistence(AsyncStorage), }); export const db = getFirestore(app); export default app;