Example:
Lets say you have a screen with list items loaded into this.state.items
.
Now you have a button that navigates you to a new screen.
On this screen you want to append an item to that list.
Once you dismiss that screen, you'll be back at the screen with the original list items.
What is the best way to achieve the goal of updating that list with the new item?
Should this be done by:
1. Passing the new screen the this.state
object.
2. By calling an update function on the old screen? (Function probably passed as a prop to the new screen.)
3. Using the StackNavigator's prop in function?
4. Another way?
I appreciate any help.