Skip to content

[android] Cannot select item with numeric value zero #608

@vincicat

Description

@vincicat

similar to #592

I encounter some bugs after upgrade to RN 0.76...after some investigation I found it only happens on Android and is related to the value prop of <Picker.Item>:

demo

iOS will convert everything into string so it is fine (even with empty string), while android will keep the origin type of value so the selection of any "js falsy" value (numeric zero, empty string, undefined value etc) will not fire the onValueChange event.

Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions