-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
How do I import NativeMethodsMixin? #13330
Comments
There's a couple of examples if you grep for
|
I think this kind of import only work inside react native project (powered by haste?) |
@evollu Yes. We cannot use it. :( |
@hramos is it something react native can expose? Can you reopen this issue? |
@evollu I have a tricky approach. We just use several methods of the object of NativeMethodsMixin.
I copy the dependency of NativeMethodsMixin to a single file. So, I can use it anywhere. |
I did
import {NativeMethodsMixin} from 'react-native'
but it is undefined.here is exponent example. You will get redbox.
https://snack.expo.io/HJq_dCGTl
The text was updated successfully, but these errors were encountered: