Noodles Practicing Medicine
Wondering what’s next for npm?Check out our public roadmap! »

react-native-touchable-scaleTypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

Animated touchable component.

Props Required Default Value
TouchableWithoutFeedback props...
style style No
defaultScale number No 1
activeScale number No 0.9
tension number No 150
friction number No 3
pressInTension number No
pressInFriction number No
pressOutTension number No
pressOutFriction number No
useNativeDriver boolean No true

Install

npm install --save react-native-touchable-scale

Usage

import TouchableScale from 'react-native-touchable-scale';
 
const Button = function(props) {
    return (
        <TouchableScale
            style={style.button}
            onPress={props.onPress}
            activeScale={0.7}
        >
            {props.children}
        </TouchableScale>
    );
};

Install

npm i react-native-touchable-scale

DownloadsWeekly Downloads

1,153

Version

2.1.2

License

ISC

Unpacked Size

8.22 kB

Total Files

6

Last publish

Collaborators

  • avatar