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

Usage of react-panresponder-web, which is incompatible with React newer than 16 #9

Open
datagutt opened this issue Jul 28, 2022 · 0 comments

Comments

@datagutt
Copy link

I see this library no longer works with a newer version of React than 16. I tried to debug this issue, and found the following:

This is because it uses react-panresponder-web, which in turn depends on react-dom/unstable-native-dependencies (that no longer exists). It seems to use injectEventPluginsByName and a forked version of the react-native-web ResponderEventPlugin.
injectEventPluginsByName was removed in some newer version of React, and ResponderEventPlugin was removed in this commit and replaced with a useResponderEvents hook.

I attempted to fix this but i am not quite sure how to proceed. I see that react-native-web now has a new Responder Event System implementation: necolas/react-native-web#1568. This uses hooks, but it should be possible to wrap this around a class component as well.

I would be very grateful if you could fix this issue, or atleast give me a few pointers on how to proceed with fixing this.

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

1 participant