Here I have the image with the empty database, I already performed certain operations and there is supposed to be something.
This is the part of the code that is not working:
questionSubmit()
{
firebase.database().ref('uSurvey/' + this.state.uid).set({
studentName: this.state.studentName,
answers: this.state.answers
});
this.setState({isSubmited: true});
}
To solve it, your rules in the database should be like
true
, both in Read and in Write