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(),             });           });        } 

it works 2 , not kth6q9p8njlyfwbuyl5

they both same first 1 has uuid

enter image description here


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -