1.0.17 • Published 7 years ago
react-native-touch-able v1.0.17
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}}