I am trying to map through the array that was stored in the state. The arrray had datas from firebase. I did console.log to see the what the state contains and it has the values but just not mapping it.
render() {
let test = this.state.subjects.map(sub => {
return (
<View>
<Text style={{ textAlign: "center" }}>{sub}</Text>
</View>
);
});
return <ScrollView style={{ marginTop: 30 }}>{test}</ScrollView>;
}
}
subin the console.this.state.subjects?