Skip to content

Commit f83780a

Browse files
committed
test: update snaps and fix typecheck
1 parent f394238 commit f83780a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

__tests__/__snapshots__/SegmentedControl.test.tsx.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ exports[`SegmentedControl should render 1`] = `
2323
"position": "relative",
2424
},
2525
undefined,
26+
false,
27+
false,
2628
]
2729
}
2830
>
@@ -35,11 +37,14 @@ exports[`SegmentedControl should render 1`] = `
3537
"zIndex": 2,
3638
},
3739
undefined,
40+
false,
41+
false,
3842
]
3943
}
4044
>
4145
<TouchableOpacity
4246
activeOpacity={0.2}
47+
disabled={false}
4348
testID="Segment_Button"
4449
>
4550
<View

src/SegmentedControl/SegmentedControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface SegmentedControlProps {
1818
| React.ReactElement<SegmentProps>
1919
| React.ReactElement<SegmentProps>[];
2020
disabled?: boolean;
21-
disabledStyle: ViewStyle;
21+
disabledStyle?: ViewStyle;
2222
inactiveTintColor?: string;
2323
initialSelectedName?: string;
2424
onChangeValue?: (name: string) => void;

0 commit comments

Comments
 (0)