Skip to content

Commit 7a1bd84

Browse files
committed
style prop's type is changed
1 parent ebeb1a5 commit 7a1bd84

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/RNBounceable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ import {
33
Easing,
44
Animated,
55
ViewStyle,
6+
StyleProp,
67
TouchableWithoutFeedback,
78
TouchableWithoutFeedbackProps,
89
} from "react-native";
910

11+
type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>;
1012
export interface IRNBounceableProps extends TouchableWithoutFeedbackProps {
1113
onPress?: () => void;
1214
bounceEffect?: number;
1315
bounceFriction?: number;
1416
useNativeDriver?: boolean;
1517
children?: React.ReactNode;
16-
style?: ViewStyle | Array<ViewStyle>;
18+
style?: CustomStyleProp;
1719
}
1820

1921
interface IState {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@freakycoder/react-native-bounceable",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "Animate and bounce any component with RNBounceable for React Native",
55
"main": "./build/dist/RNBounceable.js",
66
"repository": "git@github.com:WrathChaos/react-native-bounceable.git",

0 commit comments

Comments
 (0)