SyntaxFix
Write A Post
Hire A Developer
Questions
I solved the same problem in a React Native project. I solved it using this.
let data = snapshot.val(); if(data){ let items = Object.values(data); } else{ //return null }