I have JSON object taken from Firebase real-time database. What I want is make an array from object and pass this array to state. Hence I want to pass this data to FlatList Component.
This is how my Object looks like:
Actually, I don't need keys, just like this ->
I need your help because I just started to learn JS, before was programming on Android Studio
You can use Object.values
to get an array:
const array = Object.values( obj );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With