arqex / arqex/react-interactable
Usage of react-panresponder-web, which is incompatible with React newer than 16
- Lingua principale
- JavaScript
- Stelle
- 58
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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](https://github.com/necolas/react-native-web/commit/66751502a337f5fc7bc774ec4aa5cfa7735e5566) 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: https://github.com/necolas/react-native-web/issues/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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia esaminando la dipendenza react-panresponder-web e il suo utilizzo di react-dom/unstable-native-dependencies e injectEventPluginsByName. Confronta l’implementazione attuale degli eventi responder di react-native-web e l’hook useResponderEvents; il lavoro è completato quando la libreria funziona con versioni di React successive alla 16.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 32/100