react-native-touchable-scale icon indicating copy to clipboard operation
react-native-touchable-scale copied to clipboard

ViewPropTypes is no longer exported in react native web 0.16.3

Open xn3cr0nx opened this issue 3 years ago • 1 comments

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

xn3cr0nx avatar May 29 '21 21:05 xn3cr0nx

yarn add deprecated-react-native-prop-types

import { TouchableWithoutFeedback, Animated } from 'react-native';
import { ViewPropTypes } from 'deprecated-react-native-prop-types';

skam22 avatar Jul 08 '22 20:07 skam22

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?

RonnygoBOOM avatar Aug 18 '22 12:08 RonnygoBOOM

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.

skam22 avatar Aug 19 '22 01:08 skam22

Merged #11, hope this will help.

kohver avatar Sep 04 '22 08:09 kohver