**已关闭。**此问题需要debugging details。当前不接受答案。
编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
9小时前关门了。
Improve this question
就像我无法绕过expo & react native中的这个错误一样,我使用的导入如下:
firebase.js:
import * as firebase from "firebase/app";
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";`
App.js
import firebase from '../firebase'
依赖关系:
`"@react-navigation/native": "^6.1.2",
"@react-navigation/native-stack": "^6.9.8",
"@react-navigation/stack": "^6.3.11",
"expo": "^45.0.0",
"expo-status-bar": "~1.3.0",
"firebase": "^9.15.0",
"react": "17.0.2",
"react-native": "0.68.2",
"react-native-maps": "1.3.2",
"react-native-safe-area-context": "4.2.4",
"react-native-screens": "~3.11.1"`
我试着安装firebase,改变依赖关系,用不同的方式导入,等等。
下面是我的文件结构:File Structure
1条答案
按热度按时间o8x7eapl1#
Firebase最新版本的依赖关系如下所示:
导入这些库,如下所示:
要使用它如下: