vemarav / react-native-avatar-crop

Highly customisable <Crop /> component for React Native < 💅 >
https://www.npmjs.com/package/react-native-avatar-crop
MIT License
54 stars 14 forks source link

Invariant Violation: Tried to register two views with the same name RNCMaskedView #8

Closed kamui545 closed 2 years ago

kamui545 commented 2 years ago

Describe the bug

When including this library into my project I have the following error:

Invariant Violation: Tried to register two views with the same name RNCMaskedView.

To Reproduce

npm install @react-native-masked-view/masked-view
npm install react-native-avatar-crop

Expected behavior

Not having conflicts with new library.


I believe this error is due to the conflict between:

They are both the same library but it was renamed and moved to its own organization as react-native-masked-view/masked-view, which is now the updated version.

I would suggest using react-native-masked-view/masked-view instead and releasing a new major version of your package to avoid breaking existing apps.

See:

PR open: https://github.com/vemarav/react-native-avatar-crop/pull/9

vemarav commented 2 years ago

fixed 7ee33c166b1850cd9a85269a71c8b96fed2b5fb5