You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to reset the chosen values from outside the picker. When a value is chosen in the modal picker a state is set. When the user then presses a button the values are submitted to my API. When the API then returns an OK status I want to reset the values chosen in the modal picker. This doesn't seem to happen when I pop the route.
Any ideas?
The text was updated successfully, but these errors were encountered:
Mjuk-Biltvatt
changed the title
[Need help] Any way to reset the chosen values from outside the picker?
[Need help] Any way to reset the chosen value from outside the picker?
Mar 1, 2017
@Mjuk-Biltvatt I did a dirty hack but for now it solves the problem:
So what i did was, i created a ref in the ModalPicker, and when i'm gonna clear the data from my view, i set the state from ModalPicker and set the state from my view.
It's a dirty hack but for now is better than nothing.
I'd like to reset the chosen values from outside the picker. When a value is chosen in the modal picker a state is set. When the user then presses a button the values are submitted to my API. When the API then returns an OK status I want to reset the values chosen in the modal picker. This doesn't seem to happen when I pop the route.
Any ideas?
The text was updated successfully, but these errors were encountered: