react-native-segmented-control / segmented-control

React Native SegmentedControl library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't work with 3 values

jhonattansolartearanda opened this issue · comments

The control is not displayed correctly

<SegmentedControl values={['Abiertas', 'Vencidas', 'Por vencer']} selectedIndex={state.selectedIndex} onChange={handleIndexChange} />
image

image
image

Try reloading your app by pressing 'r' in the development server console. It fixed the issue for me.

I am also getting same issue, the exact scenario was

initially it have 2 segment values, after an action done in the screen
values are increased by 1
then it become like above image

Note: it was fine when pop and push the screen once

Any solutions??