react-native-hyperlink icon indicating copy to clipboard operation
react-native-hyperlink copied to clipboard

onPress not working properly on iPhone

Open swapanil opened this issue 5 years ago • 3 comments

Describe the bug onPress not working properly on iPhone

To Reproduce When we click on hyperlink it is not working properly It is working although but not sometimes.

Expected behavior Should call onPress when the user press on hyperlink

Smartphone (please complete the following information):

  • Device: iPhone 6,IPhoneX

Here is my code

{
    !this.state.isLoading && this.state.news.length > 0 && this.state.needToShowFullNews && 
< Hyperlink
    onPress = {
        (url, text) => this.openFullNews()
    }
    linkStyle = {
        {
            color: '#2980b9',
            fontSize: 20
        }
    }
    linkText = {
        url => url === 'https://github.com/obipawan/hyperlink' ? 'Read More' : url
    }
    injectViewProps = {
        url => ({
            testID: url === 'http://link.com' ? 'id1' : 'id2',
            style: url === 'https://link.com' ? {
                color: 'red'
            } : {
                color: 'blue'
            },
            //any other props you wish to pass to the component
        })
    }
}

swapanil avatar Apr 23 '20 15:04 swapanil

the same issue

Shedav avatar Apr 13 '21 14:04 Shedav

I have the same issue on iPhone X

Charles-Johnson avatar May 19 '23 03:05 Charles-Johnson

Same issue on iOS

mikenoriega avatar Jun 28 '23 00:06 mikenoriega