Skip to content

Commit ebeb1a5

Browse files
committed
Prop interface is renamed to IRNBounceableProps
1 parent ba7ce1e commit ebeb1a5

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/RNBounceable.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import * as React from "react";
22
import {
3-
View,
43
Easing,
54
Animated,
65
ViewStyle,
76
TouchableWithoutFeedback,
87
TouchableWithoutFeedbackProps,
98
} from "react-native";
109

11-
export interface IProps extends TouchableWithoutFeedbackProps {
10+
export interface IRNBounceableProps extends TouchableWithoutFeedbackProps {
1211
onPress?: () => void;
1312
bounceEffect?: number;
1413
bounceFriction?: number;
@@ -21,8 +20,11 @@ interface IState {
2120
springValue: any;
2221
}
2322

24-
export default class RNBounceable extends React.Component<IProps, IState> {
25-
constructor(props: IProps) {
23+
export default class RNBounceable extends React.Component<
24+
IRNBounceableProps,
25+
IState
26+
> {
27+
constructor(props: IRNBounceableProps) {
2628
super(props);
2729
this.state = {
2830
springValue: new Animated.Value(1),

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.2",
3+
"version": "0.2.3",
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)