continue generating flow, add backend connection on main tabs

This commit is contained in:
Thomas Demirdjian
2025-08-28 17:18:28 +02:00
parent 0ca7544005
commit bb7b35626f
110 changed files with 1701 additions and 3408 deletions
+12
View File
@@ -33,9 +33,21 @@ if (!firebase?.apps?.filter(({ name_ }) => name_ === "[DEFAULT]").length) {
console.log("Firebase init");
}
// Firestore settings for React Native/iOS: avoid streaming transport issues
const firestore = firebase.firestore();
try {
// Prefer auto-detect; disable fetch streams for RN iOS stability
firebase.firestore().settings({
experimentalAutoDetectLongPolling: true,
useFetchStreams: false,
ignoreUndefinedProperties: true,
});
} catch (e) {
// Ignore if settings were already set elsewhere
}
export const usersRef = firestore.collection("users");
export const projectsRef = firestore.collection("projects");
export const notificationsRef = firestore.collection("notifications");
export const documentsRef = firestore.collection("documents");
export const chatsRef = firestore.collection("chats");