Skip to content

onPress not working properly on iPhone #50

Description

@swapanil

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions