You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-touchable-resize

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-touchable-resize

React native touchable resize (scale) button

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

React native touchable resize button

If you want a button with scale animation, then the touchable scale library is your best option.

Installing

npm install react-native-touchable-resize --save
- or -
yarn add react-native-touchable-resize

Usage

import React from 'react';
import TouchableResize from 'react-native-touchable-resize';

export default class Example extends React.Component
{
	_callback()
	{
		//your logic here
	}

    render()
	{
        return (
            <View>
				<TouchableResize style={styles.image} onPress={this._callback.bind(this)}>
					<View>
						<Text>{'Button'}</Text>
					</View>
				</TouchableResize>
			</View>
        );
    }
}

API

style

Your style for button (optional)

onPress

Your callback function after touch.

Keywords

touchable

FAQs

Package last updated on 16 Jul 2019

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