Socket
Book a DemoInstallSign in
Socket

@steve-moretz/react-native-touchable-scale

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@steve-moretz/react-native-touchable-scale

Like TouchableOpacity, but scale.

2.1.9
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Animated touchable component.

PropsRequiredDefault Value
TouchableWithoutFeedback props...
style styleNo
defaultScale numberNo1
activeScale numberNo0.9
tension numberNo150
friction numberNo3
pressInTension numberNo
pressInFriction numberNo
pressOutTension numberNo
pressOutFriction numberNo
useNativeDriver booleanNotrue

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>
    );
};

Keywords

react

FAQs

Package last updated on 27 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.