SkeletonPlaceholder.js seems to be importing "@react-native-community/masked-view" @ v4.0.0.
See original GitHub issueGot the following error on version 4.0.0
Unable to resolve module @react-native-community/masked-view from ... /lib/SkeletonPlaceholder.js: @react-native-community/masked-view could not be found within project
Version: 4.0.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:17 (3 by maintainers)
Top Results From Across the Web
Issues · chramos/react-native-skeleton-placeholder
SkeletonPlaceholder is a React Native library to easily create an amazing loading ... seems to be importing "@react-native-community/masked-view" @ v4.0.0.
Read more >react-native-skeleton-placeholder
SkeletonPlaceholder is a React Native library to easily create an amazing loading effect.. Latest version: 5.2.4, last published: a month ...
Read more >React Native: Tried to register two views with the same ...
To resolve this, either remove any dependency to @react-native-community/masked-view or, as in my case, patch react-native-skeleton-placeholder ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think I am having conflict issues between @react-native-community/masked-view and @react-native-masked-view/masked-view - ‘Invariant Violation: Tried to register two views with the same name RNCMaskedView, js engine: hermes’ But I am using react-navigation which has @react-native-community/masked-view as a dependency so I can’t remove it. Can they coexist? Surely, I am not the only person using react navigation.
Hello, I had the same situation, and i solved it by the change below.
Solution:
in node_modules/react-native-skeleton-placeholder/lib/SkeletonPlaceholder.js
before :
const masked_view_1 = __importDefault(require("@react-native-community/masked-view"));
after :const masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view"));
It seemed to be happened with #37 .
I hope it could help someone. @sophie-li @chramos