@heap/react-native-heap
Version:
React Native event tracking with Heap.
13 lines (10 loc) • 340 B
JavaScript
const TouchableOpacity = ({
displayName: 'TouchableOpacity',
mixins: [TimerMixin, Touchable.Mixin, NativeMethodsMixin],
touchableHandlePress: function(e: Event) {
this.props.onPress && this.props.onPress(e);
},
touchableHandleLongPress: function(e: Event) {
this.props.onLongPress && this.props.onLongPress(e);
},
});