Skip to content

Commit 7d3100f

Browse files
authored
Update BouncyCheckbox.tsx
Added type for iconImageStyle
1 parent 993dc44 commit 7d3100f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/BouncyCheckbox.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import styles, { _textStyle } from "./BouncyCheckbox.style";
1515

1616
type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
1717
type CustomTextStyleProp = StyleProp<TextStyle> | Array<StyleProp<TextStyle>>;
18+
type CustomImageStyleProp = StyleProp<ImageStyle> | Array<StyleProp<ImageStyle>>;
1819
type BaseTouchableProps = Pick<
1920
TouchableWithoutFeedbackProps,
2021
Exclude<keyof TouchableWithoutFeedbackProps, "onPress">
@@ -45,7 +46,7 @@ export interface IBouncyCheckboxProps extends BaseTouchableProps {
4546
innerIconStyle?: CustomStyleProp;
4647
style?: CustomStyleProp;
4748
textStyle?: CustomTextStyleProp;
48-
iconImageStyle?: CustomStyleProp;
49+
iconImageStyle?: CustomImageStyleProp;
4950
textContainerStyle?: CustomStyleProp;
5051
checkIconImageSource?: ImageSourcePropType;
5152
onPress?: (checked: boolean) => void;

0 commit comments

Comments
 (0)