Reduce the frequency of accidental visual triggers of touchable items

This commit is contained in:
Paul Frazee
2022-09-09 13:24:44 -05:00
parent ddcc804518
commit c55711a1d9
+5 -1
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>
)