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

Importing NativeMethodsMixin #19936

Closed
benjarwar opened this issue Jun 27, 2018 · 1 comment
Closed

Importing NativeMethodsMixin #19936

benjarwar opened this issue Jun 27, 2018 · 1 comment
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@benjarwar
Copy link

benjarwar commented Jun 27, 2018

I'm trying to use a third party component, react-native-text-gradient, but am getting a warning in my console as follows:

Warning: ReactClass: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got undefined.

It seems that doing import NativeMethodsMixin from "react-native"; returns undefined. I've created an issue in that repo, but in researching further it seems that NativeMethodsMixin is perhaps not exposed outside of the core library.

I've also tried updating how the lib's importing NativeMethodsMixin as per @hramos's proposal in this similar/closed issue:

import NativeMethodsMixin from 'NativeMethodsMixin';

But that throws:

Unable to resolve module NativeMethodsMixin from <redacted>: Module NativeMethodsMixin does not exist in the Haste module map

@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to start a discussion, check out https://discuss.reactjs.org or follow the discussion template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Jun 27, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Jun 27, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants