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

Uncaught Error: ViewPropTypes has been removed from React Native #295

Open
danjayrose opened this issue Aug 16, 2022 · 4 comments
Open

Uncaught Error: ViewPropTypes has been removed from React Native #295

danjayrose opened this issue Aug 16, 2022 · 4 comments

Comments

@danjayrose
Copy link

  • iOS or Android? Both
  • Expo or regular React Native? React Native
  • React Native Version: 0.69.4
  • react-native-activity-feed@1.1.1
  • getstream@7.2.11

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 react-native-activity-feed@1.1.1 and import in the code

Expected behavior
As per recommendation in facebook/react-native#33557 (comment) if the import is updated to use deprecated-react-native-prop-types it should work

@TianrenWang
Copy link

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.

@danjayrose
Copy link
Author

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.

@TianrenWang
Copy link

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?

@danjayrose
Copy link
Author

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

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

No branches or pull requests

2 participants