Skip to content

iOS voiceover onPress does not navigate links #611

@atfilipcc

Description

@atfilipcc

Describe the bug
If you double tap a marked down link on iOS when voiceover is on, nothing will happen.

To Reproduce
Turn on VoiceOver, navigate to a page with a link and try to press it with a double tap.

Reproducible Code
Simply pass an interpolated link as markdown:

        <Markdown
              value={'[Hello, world](https://google.com)'}
            />

Expected behavior
Double tapping the screen while selecting the interpolated link element should open a the link through Linking.openURL

  • React Native Version:
    0.72.5

  • react-native-marked Version:
    6.0.4

  • Platform:
    iPhone 11, iOS 17.2

Additional context
I tried passing a custom renderer with Pressable, TouchableOpacity, custom buttons etc. using their own onPress handlers, but none trigger the navigation. If you immediately invoke the functional call like so Linking.openURL(href) as opposed to () => Linking.openURL(href) it will navigate successfully on render, so it seems like the gesture itself is blocked.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions