-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
MMKVNative bindings not installed #266
Comments
You need to rebuild your native part after installing the package |
I'm new to react-native could you please explain how am i supposed to do that? |
is it when you run iOS part? if so - just rebuild your project in the XCode |
Indeed, it happens to me as well. |
i have a same, when i enable debug in react native, but if i release or run it work fine |
Figured it out for IOS at least. Run the NPM iinstall In AppDelegate.mm -
In AppDelegate.h #import <MMKV/MMKV.h> |
I am running it in the development mode using expo so, how can i go without building it. |
I am using Expo as well and I ran Expo Prebuild first. That creates the ios and Android folders etc. Then I did the steps I listed above. |
My application isn't complete yet is it ok to make a prebuild of it ? @dcassese |
@saroj-regmi yes it's okay. |
What is the solution for android?? |
In your Android / App folder add this to your build.gradle file |
I get this error when I try to run tests. Is there a way to work around this? |
Hey guys, I get this error on both ios and android when I try to run with the react native debugger. I'm using Any progress on this? |
My test suite is failing with the above error. I even followed all the steps the documentation mentioned to mock the library. |
I too am getting this error when mocking via the docs for Jest. For now, my workaround is to just mock what I need in the // setup.ts
jest.mock("react-native-mmkv-storage", () => ({
MMKVLoader: () => ({
withInstanceID: () => ({
initialize: () => ({
getArray: (arr: any[]) => arr,
}),
}),
}),
})); |
Any movement on this? I get this error when trying to use |
I’ve been waiting on these developers to fix this project for almost 2 years. Our company has long since moved on. I suggest finding another solution. Granted, could I fix it. Yes. Do I have time to, no. Too many other options |
My mock solution for the error when using Jest with typescript:
|
Looks like this error doesn't have solution yet |
This mock works for me. This also addresses the
Courtesy: @nazmeln & @CoryWritesCode |
I've also been getting this error with expo managed workflow. Anyone find a fix? |
I also get this error, BUT only when using Expo Go on my actual iPhone. If I open the iOS simulator on my mac it works completely fine. So, for now I can keep working, but I doubt I can ignore this. Does anyone have any ideas? |
@roshanShendre13 I was having this same error. Upgrading to v0.10.3 fixed it. |
this is not fixed with newArchEnabled = true |
Hmm I'm using |
I did exactly how you mentioned in the docs but still getting this error: "MMKVNative bindings not installed"
here is my code
The text was updated successfully, but these errors were encountered: