Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/104.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Firebase undefined不是React Native中的对象_Ios_Firebase_React Native - Fatal编程技术网

Ios Firebase undefined不是React Native中的对象

Ios Firebase undefined不是React Native中的对象,ios,firebase,react-native,Ios,Firebase,React Native,我正在使用firebase的react native 我已使用 npm install firebase --save 我的应用程序运行,但当我添加 var Firebase = require('firebase'); 在我的index.ios.js中 undefined is not an object (evaluating 'n.navigator') 在xcode输出中 Module AppRegistry is not a registered callable module

我正在使用firebase的react native

我已使用

npm install firebase --save
我的应用程序运行,但当我添加

var Firebase = require('firebase');
在我的index.ios.js中

undefined is not an object (evaluating 'n.navigator')
在xcode输出中

Module AppRegistry is not a registered callable module

当我删除该行时,我的应用程序将再次运行。能够同时运行Firebase和react native,我还缺少什么吗?

这是react native 0.22.0和最新Firebase JavaScript SDK(目前为2.4.1)中的一个已知问题。“跟着去知道它什么时候被解决了。”弗兰克万帕夫伦,这是一个很好的答案。