...
|
...
|
@@ -27,6 +27,8 @@ import type {Props as TouchableWithoutFeedbackProps} from './TouchableWithoutFee |
|
|
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet';
|
|
|
import type {TVParallaxPropertiesType} from '../AppleTV/TVViewPropTypes';
|
|
|
import type {PressEvent} from '../../Types/CoreEventTypes';
|
|
|
const { YH_CommonHelper } = require('../../BatchedBridge/NativeModules');
|
|
|
|
|
|
|
|
|
const PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
|
|
|
|
...
|
...
|
@@ -262,6 +264,13 @@ const TouchableOpacity = ((createReactClass({ |
|
|
|
|
|
touchableHandlePress: function(e: PressEvent) {
|
|
|
this.props.onPress && this.props.onPress(e);
|
|
|
|
|
|
let eventName = this.props.yh_clickData && this.props.yh_clickData.eventName
|
|
|
let param = this.props.yh_clickData
|
|
|
if (param) {
|
|
|
delete param.eventName
|
|
|
}
|
|
|
eventName && YH_CommonHelper && YH_CommonHelper.logEvent(eventName, param)
|
|
|
},
|
|
|
|
|
|
touchableHandleLongPress: function(e: PressEvent) {
|
...
|
...
|
|