Skip to content

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

License

Notifications You must be signed in to change notification settings

yaraht17/react-native-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#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

Prop Default Description
pointerEvents 'auto' enum('box-none', 'none', 'box-only', 'auto') http://facebook.github.io/react-native/releases/0.48/docs/viewproptypes.html#pointerevents
style {} Style
activeOpacity 0.2 Determines what the opacity of the wrapped view should be when touch is active
onPress undefined Function when user press
disabled false true: disabled press
timeout 1500 miliseconds of block touch

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published