react-native-button
react-native-button copied to clipboard
fix Button.js: put an undefined-check for TouchableNativeFeedback
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.
@alvaromb: could you merge this minor commit? Thanks.
Hi @ngduc!
Please be patient, I want to check why the tests are failing.
Thanks.
@alvaromb The failed tests may be related to this - https://github.com/facebook/jest/issues/1840
Have you tried this?
This was due react@^15.3.2 resolve to [email protected] due how npm semver works. Setting the react version to react@~15.3.2 solved the issue