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