简体   繁体   English

反应本地应用程序构建失败的反应本地firebase

[英]react native app build failing for react-native firebase

we have "react-native-firebase": "4.2.0", after installing npm modules and try to run the app then we are getting this issue 我们安装了npm模块并尝试运行该应用程序后,具有“ react-native-firebase”:“ 4.2.0”,然后出现此问题

FAILURE: Build failed with an exception. 失败:构建失败,发生异常。

have you tried 你有没有尝试过

react-native link react-native-firebase ? react-native链接react-native-firebase?

I do not know if this is the question, but there is no specific google firebase configuration for react-native, so you need to log in to your project inside https://console.firebase.google.com/ , access your project and go in web configurations and implement in your code. 我不知道这是否是问题,但是没有针对react-native的特定Google firebase配置,因此您需要在https://console.firebase.google.com/内登录到您的项目,访问您的项目并进行网络配置并在您的代码中实施。

ex: 例如:

 componentWillMount() { firebase.initializeApp({ apiKey: "YOURAPIKEY", authDomain: "", databaseURL: "", projectId: "", storageBucket: "", messagingSenderId: "YOURKEY" }); 

Cheers, 干杯,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM