Skip to content

Commit

Permalink
Merge pull request #224 from abdemirza/typescript-issue-221
Browse files Browse the repository at this point in the history
Added custom image style prop
  • Loading branch information
WrathChaos authored Feb 22, 2023
2 parents 8417f35 + 7d3100f commit 544a7cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/BouncyCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import styles, { _textStyle } from "./BouncyCheckbox.style";

type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
type CustomTextStyleProp = StyleProp<TextStyle> | Array<StyleProp<TextStyle>>;
type CustomImageStyleProp = StyleProp<ImageStyle> | Array<StyleProp<ImageStyle>>;
type BaseTouchableProps = Pick<
TouchableWithoutFeedbackProps,
Exclude<keyof TouchableWithoutFeedbackProps, "onPress">
Expand Down Expand Up @@ -45,7 +46,7 @@ export interface IBouncyCheckboxProps extends BaseTouchableProps {
innerIconStyle?: CustomStyleProp;
style?: CustomStyleProp;
textStyle?: CustomTextStyleProp;
iconImageStyle?: CustomStyleProp;
iconImageStyle?: CustomImageStyleProp;
textContainerStyle?: CustomStyleProp;
checkIconImageSource?: ImageSourcePropType;
onPress?: (checked: boolean) => void;
Expand Down

0 comments on commit 544a7cf

Please sign in to comment.