File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 > > ;
1012export 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
1921interface IState {
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments