Retrieve from Firebase not working with auto generated id react native -
hi i'm retrieving data firebase function in react native , works fine when node title 1 or other number. when use push , firebase automatically generate id kth6q9p8njlyfwbuyl5 , that's when can't retrieve in react native. know why? help
let shiftpath = "/shifts/mobile"; firebase.database().ref(shiftpath).on('value', (snapshot) => { this.setstate({ mobile : snapshot.val(), }); }); }
Comments
Post a Comment