Update ToolTip.ios.js

This commit is contained in:
Marcos Rodriguez Vélez 2020-06-13 12:28:57 -04:00 committed by GitHub
parent 13c6b86560
commit 6c6b4f64ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,13 +60,13 @@ export default class ToolTip extends PureComponent {
getTouchableHighlightProps = () => {
const props = {};
Object.keys(TouchableHighlight.propTypes).forEach((key) => props[key] = this.props[key]);
// Object.keys(TouchableHighlight.propTypes).forEach((key) => props[key] = this.props[key]);
if (this.props.longPress) {
props.onLongPress = this.showMenu;
} else {
props.onPress = this.showMenu;
}
// if (this.props.longPress) {
// props.onLongPress = this.showMenu;
// } else {
// props.onPress = this.showMenu;
// }
return props;
};