segmented-control icon indicating copy to clipboard operation
segmented-control copied to clipboard

Adjust segmentWidth when values prop changes on android

Open Cygnus2112 opened this issue 2 years ago • 0 comments

Overview

On android, the SegmentedControl component does not react properly to changes in the values prop, thus occasionally resulting in situations like this:

Screen Shot 2022-03-01 at 2 30 02 PM

Test Plan

Changes can be verified by adding a simple setTimeout that changes the length of the values array passed to the component after it has been mounted.

Cygnus2112 avatar Mar 01 '22 22:03 Cygnus2112