menu

Questions & Answers

Can you keep text written in the text input field from a Modal when it closes and see it again when the Modal opens?

I am using React Native and I have a question.

Can you keep text written in the text input field from a Modal when it closes and see it again when the Modal opens?

Comments:
2023-01-17 23:25:07
The text input's state will be destroyed when the modal closes, so you'll need to use some kind of state management to keep the text outside of the component.
2023-01-17 23:25:07
i see. thank you for the comment
Answers(0) :