I can't connect to Firebase, I can't send or receive data. I tried Firestore, real time database auth, but I am not getting any error nor can I transfer any data.
A few months ago everything was working normally. I haven't been able to fix this problem for weeks.
I just updated with java and gradle versions but then reverted it back or so i think i did
import { View, Text } from 'react-native'
import React,{useState,useEffect} from 'react'
import auth, { firebase } from '@react-native-firebase/auth';
import database from '@react-native-firebase/database';
import { Button } from 'react-native-paper';
export default function DataRef() {
function getComments() {
database()
.ref('/Post/Deneme1')
.set({
name: 'Ada Lovelace',
age: 31,
})
.then(() => console.log('Data set.'));
alert('aaaaaaa')
}
useEffect(() => {
}, [])
return (
<View>
<Button onPress={()=>getComments()}>
<Text>DataRef</Text>
</Button>
</View>
)
}
package.json
{
"name": "Agarr",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.0",
"@react-native-community/masked-view": "^0.1.11",
"@react-native-firebase/analytics": "^14.7.0",
"@react-native-firebase/app": "^14.7.0",
"@react-native-firebase/auth": "^14.7.0",
"@react-native-firebase/database": "^14.7.0",
"@react-native-firebase/firestore": "^14.7.0",
"@react-native-firebase/messaging": "^14.7.0",
"@react-native-firebase/storage": "^14.7.0",
"@react-native-picker/picker": "^1.16.4",
"@react-navigation/bottom-tabs": "^5.11.11",
"@react-navigation/drawer": "^6.1.4",
"@react-navigation/material-bottom-tabs": "^5.3.15",
"@react-navigation/material-top-tabs": "^6.0.2",
"@react-navigation/native": "^6.0.0-next.17",
"@react-navigation/stack": "^5.14.7",
"@tensorflow-models/mobilenet": "^2.1.0",
"@tensorflow/tfjs": "^3.15.0",
"@tensorflow/tfjs-node": "^3.15.0",
"@tensorflow/tfjs-react-native": "^0.8.0",
"expo": ">=44.0.0-0 <45.0.0",
"expo-blur": "^9.0.3",
"expo-camera": "^12.1.2",
"expo-constants": "~13.0.2",
"expo-gl": "~11.1.2",
"expo-gl-cpp": "~11.1.1",
"expo-image-picker": "~12.0.2",
"expo-permissions": "^13.1.1",
"express": "^4.17.3",
"fcm-notification": "^2.0.0",
"firebase-admin": "^10.0.2",
"formik": "^2.2.9",
"react": "17.0.1",
"react-native": "0.64.2",
"react-native-action-button": "^2.8.5",
"react-native-chart-kit": "^6.11.0",
"react-native-document-picker": "^6.0.4",
"react-native-elements": "^3.4.2",
"react-native-fs": "^2.19.0",
"react-native-gesture-handler": "^1.10.3",
"react-native-htmlview": "^0.16.0",
"react-native-image-picker": "^4.1.1",
"react-native-linear-gradient": "^2.5.6",
"react-native-material-color": "^1.0.15",
"react-native-multiple-select": "^0.5.6",
"react-native-pager-view": "^5.4.1",
"react-native-paper": "^4.9.2",
"react-native-pell-rich-editor": "^1.8.6",
"react-native-picker-select": "^8.0.4",
"react-native-push-notification": "^7.4.0",
"react-native-radio-buttons-group": "^2.2.5",
"react-native-reanimated": "^2.2.0",
"react-native-safe-area-context": "^3.3.2",
"react-native-safe-area-view": "^1.1.1",
"react-native-screens": "^3.4.0",
"react-native-shadow-cards": "^1.0.2",
"react-native-svg": "^12.1.1",
"react-native-tab-view": "^3.1.1",
"react-native-vector-icons": "^8.1.0",
"react-native-webview": "^11.14.2",
"rn-fetch-blob": "^0.12.0",
"yup": "^0.32.9"
},
"devDependencies": {
"@babel/core": "7.14.8",
"@babel/runtime": "7.14.8",
"@react-native-community/eslint-config": "2.0.0",
"babel-jest": "26.6.3",
"eslint": "7.14.0",
"jest": "26.6.3",
"metro-react-native-babel-preset": "0.64.0",
"react-test-renderer": "17.0.1"
},
"jest": {
"preset": "react-native"
}
}