Since Picker uses RN's Picker under the hood for Android, all issues from RN's Picker is inherited by NativeBase Picker.
This issue is only created for the record because I could not figure out this bug quickly, but there is indeed an related issue in RN's repo.
The STR requires using redux state to keep track of selected values, specifically redux-form in my case:
render () {
const {
input: { value, onChange, ...inputProps },
} = this.props
return (
<Picker
selectedValue={value}
onValueChange={onChange}
{...inputProps}
>
);
}
Pick a value thats not the selected value, then repeat a few times.
onValueChange should be fired every single time the value is different from the previous. (EDITED)
The value is selected and the picker shows the new value, however, some of the times onValueChange is not fired.
The value is selected and the picker shows the new value, however, some of the times onValueChange is not fired. (EDITED)
onValueChange should be fired every single time the value is different from the previous.
Android only.
@leoskyrocker You have mixed up your comments for Expected behaviour and Actual behaviour
Post your comments appropriately (do not edit previous statement)
@SupriyaKalghatgi You're right, it should be swapped. What's the reason behind not editing the original post to reflect the issue correctly?
@leoskyrocker It has happened at times that, user raise issue and after we provide solution, user edit the issue description which conflicts the solution provided
@leoskyrocker I dont think its issue from NativeBase
Indeed, nothing to do with native-base:
see react-native issue here, and its workaround for now
I mentioned that it's not a direct issue here and I've referenced the issue in my original post.
However, I opened an issue here because it is a problem from the perspective of native-base users.
However, you guys can handle this however you want:
I'm fine either way as long as there's a record here which could save people hours.
Most helpful comment
I mentioned that it's not a direct issue here and I've referenced the issue in my original post.
However, I opened an issue here because it is a problem from the perspective of native-base users.
However, you guys can handle this however you want:
I'm fine either way as long as there's a record here which could save people hours.