【发布时间】:2017-06-28 17:41:52
【问题描述】:
我正在使用 react native 和 firebase 做我的第一个应用程序,所以我知道如何像这样配置
var config = {
apiKey: "<API_KEY>",
authDomain: "<PROJECT_ID>.firebaseapp.com",
databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
storageBucket: "<BUCKET>.appspot.com",
};
firebase.initializeApp(config);
但我不知道如何列出添加或更新数据有人可以帮助我我已经尝试过
firebase.database().ref('users/' + userId).set({
username: name,
email: email,
profile_picture : imageUrl
});
【问题讨论】:
-
错误是什么?
标签: reactjs firebase react-native firebase-realtime-database