Open lexycole opened 3 years ago
Needs more context, and better formatting
I get the same, points out to this line in MaskedView.js:
const RNCMaskedView = requireNativeComponent<any>('RNCMaskedView');
Which triggers: TypeError: Object(...) is not a function
Tried out with your github example code in a plain view.
masked-view: 0.1.11
react-native-cli: 2.0.1
react-native: 0.63.2
Just to leave a comment here for others: This issue seems to be related to reactive native web. It seems mask view is not compatible with the current version with expo web
any solution ?
I could not find any workaround, other than that it needs to be implemented https://docs.expo.dev/versions/latest/sdk/masked-view/
This works for me at the moment
https://github.com/react-native-masked-view/masked-view/issues/70#issuecomment-1171801526
11 | import * as React from 'react'; 12 | import { View, StyleSheet, requireNativeComponent } from 'react-native'; 13 | **> 14 | const RNCMaskedView = requireNativeComponent<any>('RNCMaskedView')**; 15 | 16 | import type { MaskedViewProps } from './MaskedViewTypes';
Please help with this error