Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaskView.js file: TypeError: Object(...) is not a function #130

Open
lexycole opened this issue Jul 27, 2021 · 6 comments
Open

MaskView.js file: TypeError: Object(...) is not a function #130

lexycole opened this issue Jul 27, 2021 · 6 comments

Comments

@lexycole
Copy link

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

@busterbogheart
Copy link

Needs more context, and better formatting

@clieee
Copy link

clieee commented Sep 3, 2021

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

@sergioisidoro
Copy link

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

@saqibkafeel
Copy link

any solution ?

@sergioisidoro
Copy link

I could not find any workaround, other than that it needs to be implemented
https://docs.expo.dev/versions/latest/sdk/masked-view/

@msvargas
Copy link

msvargas commented Jul 1, 2022

This works for me at the moment

#70 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants