Skip to content

Commit 2c0b27c

Browse files
authored
Merge pull request #47 from oguzeray/master
basic text and viewStyle props for intelisense
2 parents 7ad433f + 8c740f1 commit 2c0b27c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/BouncyCheckbox.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,25 @@ import {
99
ViewStyle,
1010
TouchableOpacity,
1111
TouchableOpacityProps,
12+
TextStyle,
1213
} from "react-native";
1314
import styles, { _textStyle, _iconContainer } from "./BouncyCheckbox.style";
1415

1516
type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
1617

1718
export interface IBouncyCheckboxProps extends TouchableOpacityProps {
18-
style?: any;
19+
style?: StyleProp<ViewStyle>;
1920
size?: number;
2021
text?: string;
2122
iconStyle?: any;
22-
textStyle?: any;
23+
textStyle?: StyleProp<TextStyle>;
2324
fillColor?: string;
24-
iconComponent?: any;
25+
iconComponent?: React.ReactNode;
2526
isChecked?: boolean;
2627
unfillColor?: string;
2728
disableText?: boolean;
2829
ImageComponent?: any;
29-
iconImageStyle?: any;
30+
iconImageStyle?: StyleProp<ViewStyle>;
3031
bounceEffect?: number;
3132
bounceFriction?: number;
3233
useNativeDriver?: boolean;

0 commit comments

Comments
 (0)