react-native-touch-able

1.0.17 • Public • Published

React Native Touch Able

This is a react-native component, use as TouchOpacity, prevent continually action => prevent bugs

           
npm i react-native-touch-able

Usage

import TouchAble from 'react-native-touch-able';
 
<View style={styles.container}>
<TouchAble style={{flex:1}} onTouch={()=> console.log('Hello world')}
    <Text>Hello</Text>
</TouchAble>
</View>

Props

Set prevent Time(miliseconds)

preventTime={500}

OnPress Callback:

onTouch={()=>{function}}

Package Sidebar

Install

npm i react-native-touch-able

Weekly Downloads

18

Version

1.0.17

License

MIT

Last publish

Collaborators

  • haithanh