Open sergioisidoro opened 2 years ago
Clarification: this seems to be related to the react native web. And masked view, as well as other dependencies seem to not support it. It was wrong to assume this would work immediately on react native web.
Maybe adding a warning or a documentation that this not yet work in React Native web would maybe save some time to someone :)
Version
1.0.0
Reproduction link
https://github.com/creativetimofficial/ct-soft-ui-pro-react-native/issues/3
Operating System
Big Sur 11.5.2
Device
Macbook air M1
Browser & Version
Chrome (latest), Brave (latest)
Steps to reproduce
What is expected?
Project to compile without errors.
What is actually happening?
TypeError: Object(...) is not a function on
const RNCMaskedView = requireNativeComponent('RNCMaskedView');
Solution
It seems the issue has been reported here. I wonder if pinning masked view to the previous version would help. It is also possible that this is due to this project using the old version of the package, as this comment mentions:
https://github.com/react-native-masked-view/masked-view/issues/130 https://github.com/react-native-masked-view/masked-view/issues/142#issuecomment-970501421