Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onPress not working properly on iPhone #50

Open
swapanil opened this issue Apr 23, 2020 · 3 comments
Open

onPress not working properly on iPhone #50

swapanil opened this issue Apr 23, 2020 · 3 comments

Comments

@swapanil
Copy link

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
        })
    }
}
@Shedav
Copy link

Shedav commented Apr 13, 2021

the same issue

@Charles-Johnson
Copy link

I have the same issue on iPhone X

@mikenoriega
Copy link

Same issue on iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants