Reduce the frequency of accidental visual triggers of touchable items

zio/stable
Paul Frazee 2022-09-09 13:24:44 -05:00
parent 46524d85d8
commit 2a7c53f307
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,11 @@ export const Link = observer(function Link({
store.shell.openModal(new LinkActionsModel(href, title || href))
}
return (
<TouchableOpacity style={style} onPress={onPress} onLongPress={onLongPress}>
<TouchableOpacity
style={style}
onPress={onPress}
onLongPress={onLongPress}
delayPressIn={50}>
{children ? children : <Text>{title || 'link'}</Text>}
</TouchableOpacity>
)