obipawan / react-native-hyperlink

A <Hyperlink /> component for react-native that makes urls, fuzzy links, emails etc clickable
MIT License
801 stars 76 forks source link

onPress not working properly on iPhone #50

Open swapanil opened 4 years ago

swapanil commented 4 years ago

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):

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
        })
    }
}
Shedav commented 3 years ago

the same issue

Charles-Johnson commented 1 year ago

I have the same issue on iPhone X

mikenoriega commented 1 year ago

Same issue on iOS