react-native-skeleton-placeholder
react-native-skeleton-placeholder copied to clipboard
SkeletonPlaceholder.js seems to be importing "@react-native-community/masked-view" @ v4.0.0.
Got 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
Yeah, i've the same problem. expecting them to change to masked-view since it still has performance issues.
+1
Hey guys, I'll check this
+1
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
I solved this issue with:
First, try to install:
yarn add @react-native-masked-view/masked-view
And run project. If an error occurs, like:
While trying to resolve module react-native-skeleton-placeholder from file xxxxx, ....
I make this pull request #50
I think the npm publish
was somehow messed up because:
https://cdn.jsdelivr.net/npm/[email protected]/lib/SkeletonPlaceholder.js (search for react-native-community
here)
Does not match the source of https://github.com/chramos/react-native-skeleton-placeholder/blob/master/src/SkeletonPlaceholder.tsx.
@chramos mind publishing the library again?
Can someone clarify if we need @react-native-masked-view/masked-view or @react-native-community/masked-view? Having both in the package.json is causing mergeDex error when building for android.
Can someone clarify if we need @react-native-masked-view/masked-view or @react-native-community/masked-view? Having both in the package.json is causing mergeDex error when building for android.
I used @react-native-community/masked-view, seems to work fine for now.
Can someone clarify if we need @react-native-masked-view/masked-view or @react-native-community/masked-view? Having both in the package.json is causing mergeDex error when building for android.
I have the same issue.
Hi! This fix will be uploaded? Because I'm still facing this error.
Version 5.0 uses @react-native-masked-view/masked-view
. You will need to remove the older (community) one.
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.
I am getting the same error in version 5.
I have followed the below step
Installed Masked view and linear gradient libraries before
Below is SkeletonPlaceholder.js
const masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view")); const react_native_linear_gradient_1 = __importDefault(require("react-native-linear-gradient"));
But still I am getting below :
Error: Unable to resolve module @react-native-community/masked-view
from node_modules/react-native-skeleton-placeholder/lib/SkeletonPlaceholder.js
: @react-native-community/masked-view could not be found within the project.
Same issue here as @MaganAnkur
more 1 here 🪂
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.
I removed @react-native-masked-view/masked-view and restart then fix error
Note: This package requires @react-native-masked-view/masked-view and react-native-linear-gradient