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 have react picker drop down, its data source is constant object which is multlangual.
mean its labels property change if language changes on fly, but its index (value) wich is record it it remain same.
But i found react native picker loose its last state when we switch language,
it drop previously selected value and start again from default value if i change language from English to esponial.
It should not happen, because if Index is same,picker should not care about changing labels from english to spanish, i loose pickers value if switch language in middle of form.
Reproducible Demo
This is my dropdown data source which switch label if locale changed var COUNTRY_RENDER = []; this.state.countryDropdown.map(function (item, index) { COUNTRY_RENDER.push({ label: (locale == "en") ? item.name : item.name_es, value: item.id }); });
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.
The "⏪Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.
I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.
If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.
Activity
react-native-bot commentedon Nov 27, 2018
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.
The "⏪Old Version" label will be removed automatically once you edit your original post with the results of running
react-native infoon a project using the latest release.bartolkaruza commentedon Nov 28, 2018
Hi @indrsidhu, could you try to make a snack with your component? I'm not able to see from your snippet what could be going wrong here.
react-native-bot commentedon Dec 13, 2018
I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.
If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.