0.0.2 • Published 7 years ago

react-native-touch v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

#react-native-touch

React Native Touch is component for React Native. Base from TouchableOpacity. Helps block the touch repeatedly and continuously for a short time.

Installation

$ npm i react-native-touch --save

Properties

Usage

            import Touch from 'react-native-touch';
            
             <Touch
                pointerEvents = {'auto'}
                style={{padding: 10, color: 'red'}}
                activeOpacity={0.7}
                onPress= {this.onPress}
                disabled={false}
            >
                //Your view 
            </Touch>
    

PropsType

PropDefaultDescription
pointerEvents'auto'enum('box-none', 'none', 'box-only', 'auto') http://facebook.github.io/react-native/releases/0.48/docs/viewproptypes.html#pointerevents
style{}Style
activeOpacity0.2Determines what the opacity of the wrapped view should be when touch is active
onPressundefinedFunction when user press
disabledfalsetrue: disabled press
timeout1500miliseconds of block touch