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

Invariant Violation: Tried to register two views with the same name RNCWebView #7

Open
durdevic opened this issue May 7, 2021 · 2 comments

Comments

@durdevic
Copy link

durdevic commented May 7, 2021

I already have react-native-webview in my package.json and use it in my app, I believe this is why the error shows up. It disappears the moment I don't render the ChatWidget.

A solution that crosses my mind is not to add react-native-webview widgets package.json, but additionally just add to root package json as proprietary package so that this conflict doesn't happen.

The app works when I remove the react-native-webview from the inside of node_modules. 💪

ERROR Invariant Violation: Tried to register two views with the same name RNCWebView
(node:96746) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit
@DejiAwoniyi
Copy link

DejiAwoniyi commented Jun 29, 2021

Thanks for the pointers. Worked a treat here. God bless. For clarity (in case anyone was confused like me)- you follow the WebView manual installation steps referenced above and then you remove the react-native-webview folder from the inside of @papercups.io chat widget node_modules.

@joelleortiz
Copy link

Any chance this'll get resolved soon? The PR looks good and it'd be good to make react-native-webview a peer dependency instead.

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

3 participants