My project was working fine, but after I went to sleep and came back, it simply doesn’t work anymore. I tested it with 4G and it also gave an error I ran tests on EXPO GO, BUILD DEV BY EAS, and BUILD DE PRODUÇÃO BY EAS, and without success, the problem persists I offer any script to help solve this problem
I tested on different networks and different cell phones.
I also tried the SHA approach, but without success.
{
"name": "estudae",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@expo/vector-icons": "^14.1.0",
"@google/generative-ai": "^0.24.1",
"@react-native-async-storage/async-storage": "2.1.2",
"@react-native-community/datetimepicker": "8.4.1",
"@react-native-community/slider": "4.5.6",
"@react-native-masked-view/masked-view": "^0.3.2",
"@react-navigation/bottom-tabs": "^7.3.17",
"@react-navigation/native": "^7.1.14",
"@react-navigation/native-stack": "^7.3.18",
"@react-navigation/stack": "^7.4.2",
"buffer": "^6.0.3",
"docx": "^9.5.1",
"expo": "~53.0.12",
"expo-av": "~15.1.6",
"expo-blur": "~14.1.5",
"expo-calendar": "~14.1.4",
"expo-camera": "~16.1.8",
"expo-clipboard": "~7.1.4",
"expo-dev-client": "~5.2.2",
"expo-document-picker": "~13.1.6",
"expo-file-system": "~18.1.10",
"expo-haptics": "^14.1.4",
"expo-image-picker": "~16.1.4",
"expo-linear-gradient": "~14.1.5",
"expo-mail-composer": "^14.1.4",
"expo-media-library": "~17.1.7",
"expo-print": "~14.1.4",
"expo-sharing": "~13.1.5",
"expo-speech": "~13.1.7",
"expo-status-bar": "~2.2.3",
"expo-system-ui": "^5.0.9",
"firebase": "^11.9.1",
"mammoth": "^1.9.1",
"metro": "^0.82.0",
"metro-config": "^0.79.1",
"metro-core": "^0.79.1",
"metro-resolver": "^0.79.1",
"metro-source-map": "^0.79.1",
"metro-transform-worker": "^0.79.1",
"moti": "^0.30.0",
"react": "19.0.0",
"react-native": "0.79.4",
"react-native-circular-progress-indicator": "^4.4.2",
"react-native-confetti-cannon": "^1.5.2",
"react-native-draggable-flatlist": "^4.0.3",
"react-native-gesture-handler": "~2.24.0",
"react-native-paper": "^5.14.5",
"react-native-reanimated": "~3.17.4",
"react-native-safe-area-context": "5.4.0",
"react-native-screens": "~4.11.1",
"react-native-svg": "15.11.2",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/plugin-transform-class-properties": "^7.27.1",
"@babel/plugin-transform-private-methods": "^7.27.1",
"@babel/plugin-transform-private-property-in-object": "^7.27.1",
"metro-react-native-babel-preset": "^0.77.0"
},
"private": true
}
// firebaseConfig.js
import ReactNativeAsyncStorage from '@react-native-async-storage/async-storage';
import { initializeApp } from "firebase/app";
//@ts-ignore
import { getReactNativePersistence, initializeAuth } from 'firebase/auth';
import { getFirestore } from "firebase/firestore";
import { getStorage } from 'firebase/storage';
const firebaseConfig = {
apiKey: "",
authDomain: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""
};
const app = initializeApp(firebaseConfig);
export const auth = initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage),
});
export const db = getFirestore(app);
export const storage = getStorage(app);