刚刚加载firebase 3.0与反应原生并得到错误
[fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled
JS Exception: Can’t find variable: document
是反应原生支持吗?
React-native代码:
var firebase = require('firebase') // Initialize Firebase var config = { apiKey: '<apiKey>',authDomain: '<app>.firebaseapp.com',databaseURL: 'https://<app>.firebaseio.com',storageBucket: 'firebase-<app>.appspot.com' }; firebase.config(config)
Firebase JS SDK 3.1
just got released,现在与React Native兼容!
原文链接:https://www.f2er.com/react/301950.html