-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
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
})
}
}
ErikMelton, Brunohes, Shedav, alperkilickaya and Charles-Johnson
Metadata
Metadata
Assignees
Labels
No labels