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
{{ message }}
Repository navigation
Android: Pressable consumes child native text link presses from react-native-enriched-markdown #475
On Android, links rendered by react-native-enriched-markdown do not fire onLinkPress when the markdown component is rendered inside a Pressable from react-native-gesture-handler.
The same markdown link works when the parent is React Native's built-in Pressable.
This only reproduces on Android. iOS works as expected.
Environment
React Native: 0.83.9
react-native-gesture-handler: 2.31.2
react-native-enriched-markdown: 0.6.0
Platform: Android
Architecture: New Architecture enabled
Reproduction
importReactfrom"react"import{Alert,PressableasRNPressable,Text,View}from"react-native"import{PressableasRNGHPressable}from"react-native-gesture-handler"import{EnrichedMarkdownText}from"react-native-enriched-markdown"constmarkdown="Open [gesund.de](https://gesund.de)"exportfunctionRepro(){return(<Viewstyle={{padding: 24}}><Text>RNGH Pressable parent - link does not fire on Android</Text><RNGHPressableonPress={()=>{console.log("parent RNGHPressable pressed")}}style={{padding: 16,backgroundColor: "#eee"}}><EnrichedMarkdownTextmarkdown={markdown}flavor="github"markdownStyle={{paragraph: {fontSize: 16,lineHeight: 24,color: "#000",},link: {color: "#000",underline: true,},}}onLinkPress={({ url })=>{console.log("markdown link pressed",url)Alert.alert(url)}}/></RNGHPressable><Text>RN Pressable parent - link works</Text><RNPressableonPress={()=>{console.log("parent RNPressable pressed")}}style={{padding: 16,backgroundColor: "#eee"}}><EnrichedMarkdownTextmarkdown={markdown}flavor="github"markdownStyle={{paragraph: {fontSize: 16,lineHeight: 24,color: "#000",},link: {color: "#000",underline: true,},}}onLinkPress={({ url })=>{console.log("markdown link pressed",url)Alert.alert(url)}}/></RNPressable></View>)}
it works on the android emulator. However on a PHYSICAL device the problem seems to still be active.
I would be very thankful if you fixed it there as well,
Hi @simeonbakalov, just tested on a physical device and it looks like it's working the same way as on the emulator. I can't reproduce this problem. Do you have any specific reproduction?
Activity
hryhoriiK97 commentedon Jul 2, 2026
Hi @simeonbakalov, I've merged the fix for this issue. It will be included in today's v0.7.0 release
simeonbakalov commentedon Jul 7, 2026
Hey @hryhoriiK97 nice work!
it works on the android emulator. However on a PHYSICAL device the problem seems to still be active.
I would be very thankful if you fixed it there as well,
Thanks in advance :)
hryhoriiK97 commentedon Jul 7, 2026
Hi @simeonbakalov, just tested on a physical device and it looks like it's working the same way as on the emulator. I can't reproduce this problem. Do you have any specific reproduction?
fix(android): prevent false link hit detection for taps outside text …
chore(example): add Gesture Handler Repro screen for #475
fix(android): prevent false link hit detection for taps outside text …
chore(example): add Gesture Handler Repro screen for #475
simeonbakalov commentedon Jul 8, 2026
Hey,
it seems that i had cache problems after I upgraded the version. Now everything is working fine
Thanks!
fix(android): prevent false link hit detection for taps outside text …