项目
在 GitHub 查看
davideast/firebase-react-native-sample
关于
使用 React Native 和 Firebase
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Firebase React Native App

7/6/16 - Updated to 3.1.0 of the Firebase SDK
With the new 3.1.0 SDK, Firebase Database and Firebase Auth, now work with React Native.
Rather than use new Firebase(url) like with the old SDK, you now configure firebase with firebase.initializeApp(config),
and use the new firebase.database().ref() method.
const React = require("react-native");
const firebase = require("firebase");
// Initialize Firebase
const firebaseConfig = {
apiKey: "<YOUR-API-KEY>",
authDomain: "<YOUR-AUTH-DOMAIN>",
databaseURL: "<YOUR-DATABASE-URL>",
storageBucket: "",
};
firebase.initializeApp(firebaseConfig);
// Create a reference with .ref() instead of new Firebase(url)
const rootRef = firebase.database().ref();
const itemsRef = rootRef.child('items');
Tutorial - https://firebase.googleblog.com/2016/01/the-beginners-guide-to-react-native-and_84.html
探索相关项目
加载中…