Skip to content

Commit cbcfcd6

Browse files
committed
style prop accepts both ViewStyle and array of ViewStyle now
1 parent 482620f commit cbcfcd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/RNBounceable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import {
88
} from "react-native";
99

1010
export interface IProps {
11-
style?: ViewStyle;
1211
onPress?: () => void;
1312
bounceEffect?: number;
1413
bounceFriction?: number;
1514
useNativeDriver?: boolean;
1615
children?: React.ReactNode;
16+
style?: ViewStyle | Array<ViewStyle>;
1717
}
1818

1919
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.0",
3+
"version": "0.2.1",
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)