-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Upgrade React 0.14.x -> 15.0.1 break onPress event #123
Comments
I'll have to look into whether this is a problem in React Native's |
@necolas Just curious, what are the changes within React v15 that makes it incompatible with |
I am getting the issue with React 0.14 (I just downgraded too, but bug is still here) and this code return (
<TouchableHighlight
style={ [
props.style,
styles.link,
] }
onPress={ () => {
console.log("onpress")
link(props.to)()
console.log("onpress done mofo")
} }
>
<Text
onPress={ () => {
console.log("text onpress")
} }
>
{ props.children }
</Text>
</TouchableHighlight>
) If I replace TouchableHighlight by a Text component, both onPress works. It seems like it's an issue with TouchableHighlight and not just React 15 :/ |
Here is a snippet of code, it still works on
but it is broken on:
I get:
As workaround I downgraded React to 0.14.8
The text was updated successfully, but these errors were encountered: