masked-view: Invariant Violation: requireNativeComponent: "RNCMaskedView" was not found in the UIManager.
Unhandled JS Exception: Invariant Violation: Invariant Violation: requireNativeComponent: "RNCMaskedView" was not found in the UIManager.
This error is located at:
in RNCMaskedView (at MaskedView.ios.js:73)
I keep getting this error when using the community version. But when I used the Deprecated MaskedViewIOS it works.
I’ve done react-native link @react-native-community/masked-view successfully. So not sure what’s wrong
Versions:
- @react-native-community/masked-view: ^0.0.5
- react: 16.8.3
- react-native: 0.59.8
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17
Your problem was that you didn’t rebuild and restart application after linked library. This issues is closed. Whats about warning - it is just warning and does not affect the operation of the module. This warning will fixed in next version.
Delete Build, yarn add @react-native-community/masked-view, react-native link @react-native-community/masked-view, cd ios, pod install, restart the simulator
I had the same problem on Android and finally found a solution. In MainApplication.java file (under android/app/src/main/java/com/projectName):
None of it seem to work for me on iOS and RN 71
Invariant Violation: requireNativeComponent: “RNCMaskedView” was not found in the UIManager. Got the same issue on android. tried ./gradlew clean but not worked.