You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
.push() method of 2.x version of react-native-firebase was returning a promise and when its resolved, I was getting an object inside then function. This object had a "path" prop which gave me the full path of inserted object.
However, currently I'm using 3.1.0 and then function returns null to me. Object is still inserting to database I dont think there is a problem with that. I can observe it.
firebase.database().ref('path/' + id).push({ key: 'value' }).then((result) => { console.log('result',result); //this wasn't null until the 3.1.0 version console.log(result.path); })
Environment
Application Target Platform: IOS
Development Operating System: macOS Sierra 10.12.6
Build Tools: XCode 9.1
React Native version: 0.51
RNFirebase Version: 3.1.0
Firebase Module: database
The text was updated successfully, but these errors were encountered:
Hello,
.push() method of 2.x version of react-native-firebase was returning a promise and when its resolved, I was getting an object inside then function. This object had a "path" prop which gave me the full path of inserted object.
However, currently I'm using 3.1.0 and then function returns null to me. Object is still inserting to database I dont think there is a problem with that. I can observe it.
firebase.database().ref('path/' + id).push({ key: 'value' }).then((result) => { console.log('result',result); //this wasn't null until the 3.1.0 version console.log(result.path); })
Environment
Application Target Platform: IOS
Development Operating System: macOS Sierra 10.12.6
Build Tools: XCode 9.1
React Native version: 0.51
RNFirebase Version: 3.1.0
Firebase Module: database
The text was updated successfully, but these errors were encountered: