-
Notifications
You must be signed in to change notification settings - Fork 292
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
onValueChange callback has its arg only accepting string type now #572
Comments
Yes! I just discovered this breaking change today as well. We're using pickers to select number values to do math on it, and it totally broke. I'm storing a list of numbers in the picker, and when the Picker's I've recently updated to 2.7.2, and haven't seen any updates in the change log that reflects this issue in newer updates. |
@AdamJB |
I've just stumbled upon this too! Completely broke functionality in my app as I check for |
if this is an intentional change, I think we should change the interface of the component |
Duplicate of #538 |
Hello, I would like to see if anyone have had a similar issue.
I have recently upgraded the package from 2.4.10 to 2.6.1.
And I just realized that a Picker with which onValueChange callback is set to have something as following does not work as used to.
Even when the picker item's value is number, it appears that "value" turns out be casted to string type instead of number type at least for iOS.
If my remember correctly, it used to work with the case item value is number without having to have its arg value casted.
When I looked into some recent changes
498b4e3
I found a part where it could be something to do with it. It looks like it casts its value to string?
However, it seems that the above implementation should only applicable for the project that the new architecture is enabled, and my project is not. So, I am wondering if someone else has encountered the similar situation.
Thanks for your work!
The text was updated successfully, but these errors were encountered: