How to saving data from multi-input-step to firebase

So i want to make a survey that each question will be full screen.
I have more than 10 question, so it will be like next step input.

the flow like this
input1 ->submit -> change to input 2-> submit … till end
then after the end of submit function will be storing all data from input1-inputn in firebase.
how i can do that? i was wondering using tiny DB, but idk how to make that if i need make 1-1 screens
thank you