This Browser is not supported in iOS simulator

前端 未结 2 1336
Happy的楠姐
Happy的楠姐 2021-02-15 17:32

I am getting an error in react-native, This Browser is not supported, in the iOS simulator, after running the following code:

const firebase = requi         


        
2条回答
  •  太阳男子
    2021-02-15 17:39

    Firebaser here

    The new Firebase Authentication currently doesn't work in React Native due to a dependency on the window object. We're looking if that's something we can improve, but no guarantees.

    From Jacob's post on the firebase-talk list:

    As a "workaround" if you don't need auth (unlikely, I know, but still worth mentioning), you should be able to do the following:

    var app = require('firebase/app');
    var database = require('firebase/database');
    

提交回复
热议问题