Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React native firebase not updating the realtime database

$
0
0

Here the snapshot is updated and its not reflected in the database when I check the firebase console

database().ref('users').set('uid');database().ref('users').on('value', snapshot => {    console.log('User data: ', snapshot.val());                });

and when I put an await before the set

await database().ref('users').set('uid');

it seems to be stuck on that line and the rest of the code is not executed. I'm not shown any errors.

Also i am not able to read data from database too for some reason

Could some explain whats happening and what I could do about it?


Viewing all articles
Browse latest Browse all 6287

Trending Articles