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

fix Button.js: put an undefined-check for TouchableNativeFeedback #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ngduc
Copy link

@ngduc ngduc commented Dec 3, 2016

Context:
I'm using "react-native-web" & "react-native-gifted-form" which has "APSL/react-native-button" as a dependency.
I think because in web mode, TouchableNativeFeedback is undefined, it crashed my app.

I just added an undefined-check for TouchableNativeFeedback.
Please merge. Thanks.

image

@ngduc
Copy link
Author

ngduc commented Dec 6, 2016

@alvaromb: could you merge this minor commit? Thanks.

@alvaromb
Copy link
Collaborator

alvaromb commented Dec 7, 2016

Hi @ngduc!

Please be patient, I want to check why the tests are failing.

Thanks.

@ngduc
Copy link
Author

ngduc commented Dec 9, 2016

@alvaromb The failed tests may be related to this - jestjs/jest#1840

Have you tried this?

This was due react@^15.3.2 resolve to react@15.4.0 due how npm semver works.
Setting the react version to react@~15.3.2 solved the issue

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

Successfully merging this pull request may close these issues.

2 participants