File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as React from "react" ;
22import {
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 ) ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments