react-native-activity-feed icon indicating copy to clipboard operation
react-native-activity-feed copied to clipboard

Uncaught Error: ViewPropTypes has been removed from React Native

Open danjayrose opened this issue 3 years ago • 4 comments

Describe the bug When installing with the latest React Native version this package causes an uncaught error as it uses ViewPropTypes which have been deprecated by React Native.

To Reproduce Steps to reproduce the behavior:

  1. Create new project with react native
  2. Install [email protected] and import in the code

Expected behavior As per recommendation in https://github.com/facebook/react-native/issues/33557#issuecomment-1212212561 if the import is updated to use deprecated-react-native-prop-types it should work

danjayrose avatar Aug 16 '22 15:08 danjayrose

LOL was expecting to find this question at the top of the issue. If they fix this, great, but I don't expect them to do that any time soon, maybe ever.

TianrenWang avatar Aug 20 '22 02:08 TianrenWang

Yes I also thought the same as it seems that this isn't maintained anymore. To resolve the issue for my project I use patch-package to resolve the problem that seems to originate from react-native-keyboard-spacer.

danjayrose avatar Aug 26 '22 22:08 danjayrose

Yes I also thought the same as it seems that this isn't maintained anymore. To resolve the issue for my project I use patch-package to resolve the problem that seems to originate from react-native-keyboard-spacer.

@danjayrose By any chance, can I get a copy of that patch-package?

TianrenWang avatar Aug 27 '22 01:08 TianrenWang

Sorry for the late reply, I've been on holiday. I've attached the patch file, just rename the file extension from .txt to .patch and put it in your patches folder

react-native-keyboard-spacer+0.4.1.txt

danjayrose avatar Sep 07 '22 09:09 danjayrose