Skip to content

Commit 544a7cf

Browse files
authored
Merge pull request #224 from abdemirza/typescript-issue-221
Added custom image style prop
2 parents 8417f35 + 7d3100f commit 544a7cf

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)