You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iOS: accessibilityValue percentage is wrong when min is not 0 #60015
On iOS, a view with accessibilityValue={{ min, max, now }} and no text gets a percentage as its value, computed as now / (max - min) (RCTViewComponentView.mm#L577-L578). min is not subtracted from now, and an empty range is not skipped:
{ min: 10, max: 20, now: 15 } is read as "150%".
{ min: 10, max: 20, now: 10 } is read as "100%".
{ min: 5, max: 5, now: 5 } is read as "+∞".
aria-valuemin, aria-valuemax and aria-valuenow give the same values. Android gives TalkBack the range only when max > min and now is inside it. I'll send a fix.
Steps to reproduce
Run the reproducer from ReproducerApp: yarn install, pod install in ios, then yarn ios.
Open Accessibility Inspector and read the Value field of each element.
Activity