uday214125
uday214125

Reputation: 583

How to maintain last screen data in react native?

current selected place

enter image description here

How to do situation like this in react native ?

When I select next place it will show current place map , and when I press back it should show last seen map of that place.

Thanks.

Upvotes: 1

Views: 109

Answers (1)

Subhajit
Subhajit

Reputation: 894

Use redux and store the data like a stack. And on back button press pop out the last object from the stack.

Upvotes: 1

Related Questions