-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picker with dynamic options broke on Android #12829
Comments
the error is in this line:
|
Thanks @sibelius. I found the solution. ProblemAt some point, the SolutionI try to check if I will working on this problem and I try to solve it in a better way. If anyone has a better solution, please comment here. |
Any news about that? Same error here ! |
@tiago-marques, for now the solution is:
var value;
if (this.props.children[0][0]) {
value = this.props.children[0][position].props.value;
} else {
value = this.props.children[position].props.value;
} It should be work |
@danielfeelfine thank you ! |
Closed by: #8153 |
Description
I'm try to make a dynamic Picker. They are 02 Pickers and the second options appear according to the option selected in the first Picker.
In iOS everything works fine, but in Android I got the error
Cannot read 'props' of null
when I select any Picker at second time.Reproduction
The code and reproduction of this bug is in this repository.
Additional Information
The text was updated successfully, but these errors were encountered: