Reduce the frequency of accidental visual triggers of touchable items
This commit is contained in:
parent
46524d85d8
commit
2a7c53f307
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ export const Link = observer(function Link({
|
||||||
store.shell.openModal(new LinkActionsModel(href, title || href))
|
store.shell.openModal(new LinkActionsModel(href, title || href))
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity style={style} onPress={onPress} onLongPress={onLongPress}>
|
<TouchableOpacity
|
||||||
|
style={style}
|
||||||
|
onPress={onPress}
|
||||||
|
onLongPress={onLongPress}
|
||||||
|
delayPressIn={50}>
|
||||||
{children ? children : <Text>{title || 'link'}</Text>}
|
{children ? children : <Text>{title || 'link'}</Text>}
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue