You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wouldn't it be good to have the ability to determine more events for web?
Like for Pressable if the Platform.OS === 'web' onPress event returned a value containing the key
Like
constonPressHandler=(e)=>{if(Platform.OS==='web'&&e.key==='Middle Mouse Button'){// do something...}}<PressableonPress={onPressHandler}/>
my specific use case was to use Pressable from react-native-gesture-handler instead of Link so items wouldn't get dragged by mouse in a carousel in web. but be able to open links in new tab. but there was no Middle Mouse Button handler
I finally used
Hello
Wouldn't it be good to have the ability to determine more events for web?
Like for Pressable if the Platform.OS === 'web' onPress event returned a value containing the key
Like
my specific use case was to use
Pressable
fromreact-native-gesture-handler
instead ofLink
so items wouldn't get dragged by mouse in a carousel in web. but be able to open links in new tab. but there was no Middle Mouse Button handlerI finally used
The text was updated successfully, but these errors were encountered: