Skip to content

[iOS26.beta2] slider.value at onTap is not updated correctly #718

Open
@lovegaoshi

Description

@lovegaoshi

Environment

this only happens on iOS26 emulator (XCode 26 beta 2) + RN 0.79.2 + new arch; iOS 18.4 emulator seems fine. I do not have a physical device to validate this.

seems like iOS26 beta1 the value calculated/process percent isnt even right. perhaps this will all be fixed in release.

Description

in the screenshot, I logged the sliderPercent calculated by the tap position, the clipped value, and finally slider.value after slider.setValue is called. However you can see from the logs value !== slider.value anymore! this is not the case for iOS 18 emulators, only for iOS 26. this makes onSlidingComplete not reliable anymore. interestingly this only applies to tap; actually sliding the slider works fine.

Image

Reproducible Demo

see the above screenshot.

I wonder what's the decision using slider.value to call the callbacks, instead of just value? seems like an easy PR I can do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions