Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase.database().ref("path").once("value") don't call callback #1609

Closed
HemrajLodha opened this issue Oct 17, 2018 · 1 comment
Closed

Comments

@HemrajLodha
Copy link

HemrajLodha commented Oct 17, 2018

Issue

const ref = firebase.database().ref('users').child(uid);
            ref.update(user).then(function () {
                Alert.alert("success");
            }).catch(function (error) {
                Alert.alert("error", error);
            });

It's updating data in database but not calling callback.

Environment

  1. Application Target Platform:

targetSdkVersion = 26

  1. Development Operating System:

Windows 7

  1. Build Tools:

Android Studio

  1. React Native version:

react-native": "^0.57.1"

  1. React Native Firebase Version:

"react-native-firebase": "^5.0.0"

  1. Firebase Module:

database

  1. Are you using typescript?

No

@Salakar
Copy link
Member

Salakar commented Oct 18, 2018

Duplicate of #1498

@Salakar Salakar marked this as a duplicate of #1498 Oct 18, 2018
@Salakar Salakar closed this as completed Oct 18, 2018
@invertase invertase locked as spam and limited conversation to collaborators Oct 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants