Closed brunocascio closed 7 years ago
Hi, I tried with dynamic data and the picker seems to render the list pretty well. Am I missing anything here?
@sankhadeeproy007 thanks for the quick response.
I tried again with some changes on the router react-native-router-flux and works fine. Might be a problem with the router library.
Thanks!
@brunocascio do you still remember what you changed to make it work? I'm facing the exact same problem..
I figured it out on my own. In case anybody comes across this, it was a rather stupid race-condition. I was loading my data dynamically via an API and the state was not updated by the time the render method ran.
After changing this, the Picker rendered just fine.
@philkry Sorry for the delay,
Yes, I faced the same problem as you commented. However, when the state change, the render method is called again automatically, then the picker should be rendered with the new data... Now it's working, but I'll reopen this issue if the problem persists in another scenario.
react-native, react and native-base version
Expected behavior
Picker Items will be displayed properly on iOS.
Actual behaviour
Picker Items are displayed properly on Android but not on iOS.
Steps to reproduce
Is the bug present in both ios and android or in any one of them?
iOS only
Any other additional info which would help us debug the issue quicker.
I'm using redux (latest version)
Works fine with hardcoded picker Items.