React Native how to read Real Time Database Firebase
问题 So I got one Screen with the Firebase configuration and one which should call the data. I'd like to have up to date Information. As of now I have the following code: export const firebaseFetchProfileItem = (category) => { var snap; database .ref("users/" + authentification.currentUser.uid + "/profile/" + category) .on("value", function (snapshot) { snapshot.val() ? (snap = snapshot.val()) : undefined; }), function (error) { log.error(error); }; return snap; }; It works "okayish", since it