react-native-touchable-scale
react-native-touchable-scale copied to clipboard
ViewPropTypes is no longer exported in react native web 0.16.3
Hello :wave:
As specified in the title, after upgrading to react-native-web 0.16.3, web app no longer works due to ViewPropTypes
not being exported when importing the following:
import { TouchableWithoutFeedback, Animated, ViewPropTypes } from 'react-native';
Is it possible to get rid of ViewPropTypes
and keep compatibility?
Thanks
yarn add deprecated-react-native-prop-types
import { TouchableWithoutFeedback, Animated } from 'react-native';
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
deprecated-react-native-prop-types? Is this still the method people are using to get around this, or has touchable-scale been updated to not need this dependency?
Yes, it’s a very simple fix. You could also link to the PR that’s pending - but it won’t be merged until one of the maintainers accepts it.
Merged #11, hope this will help.