Skip to content

SegmentedControl onChange acts differently on iOS vs Android/Web #889

Open
@VNDRN

Description

@VNDRN

Hi,
We noticed that pressing the selected item in the segmented control triggers the onChange and onValueChange every time on android or web but it doesn't on iOS. Only pressing an unselected item triggers the onChange.

This behaviour should be the same on both android & iOS.

Tapping an active segment should never call the onChange orValueChange handlers, since there is no change in the state. Perhaps an onPress can be added that triggers the event on every press?

Reproducible example

https://snack.expo.dev/gfEAxSb7j4Pd5uGSENPVw

Notice the difference when running the snack on iOS vs on android

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