我正在尝试在我的本机应用程序上使用firebase.但它给出了一个错误.
原文链接:https://www.f2er.com/react/443136.html我的App.js代码如下
import React,{ Component } from 'react'; import { Text } from 'react-native'; import firebase from 'firebase'; export default class HelloWorldApp extends Component { componentWillMount(){ firebase.initializeApp({ apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',authDomain: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',databaseURL: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',projectId: 'xxxxxxxxxxxxxxxxxxxx',storageBucket: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',messagingSenderId: 'xxxxxxxxxx' }) } render() { return ( <Text>Hello world!</Text> ); } }
我能做什么?谢谢