tic-react-native-sample-touchable-strategy-package
v1.0.1
Published
const touchableShortPress = new TouchableOpacityWithShortPressStrategy()
Downloads
2
Readme
How to instantiate and consume the package
const touchableShortPress = new TouchableOpacityWithShortPressStrategy()
const touchableLongPress = new TouchableOpacityWithLongPressStrategy()
const touchableHandler = new TouchableOpacityBuildComponent(touchableShortPress)
touchableHandler.buildComponent(mapData,handlePress,'This is a short press')
new TouchableOpacityBuildComponent(new TouchableOpacityWithShortPressStrategy() .buildComponent(mapData,handlePress,'This is a short press'))