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

[Bug] MMKVNative Bindings Not Installed #356

Open
MrMicrowaveOven opened this issue Aug 21, 2024 · 6 comments
Open

[Bug] MMKVNative Bindings Not Installed #356

MrMicrowaveOven opened this issue Aug 21, 2024 · 6 comments

Comments

@MrMicrowaveOven
Copy link

Describe the bug
These two lines alone are causing an error:

import { MMKVLoader, useMMKVStorage } from 'react-native-mmkv-storage';
const storage = new MMKVLoader().initialize();

To Reproduce
Dependencies:

"react": "18.3.1",
"react-native": "0.75.2",

Expected behavior
I have used this library in a previous app without issue.

Screenshots
Screenshot 2024-08-20 at 10 14 13 PM

Platform Information:

"dependencies": {
    "react": "18.3.1",
    "react-native": "0.75.2",
    "react-native-dropdown-picker": "^5.4.6",
    "react-native-mmkv-storage": "^0.10.2"
  }

Used on an Android emulator

@ferdiu
Copy link

ferdiu commented Aug 21, 2024

I am affected by this too. It happened after I tried to upgrade react-native from version 0.74.3 to 0.75.2.
Tried with both 0.9.1 and 0.10.2 versions of react-native-mmkv-storage package.

Probably related to #353.

@MrMicrowaveOven
Copy link
Author

I am affected by this too. It happened after I tried to upgrade react-native from version 0.74.3 to 0.75.2.
Tried with both 0.9.1 and 0.10.2 versions of react-native-mmkv-storage package.

Probably related to #353.

Oh wow. Yeah, I legit tried reverting to version 0.9.1 to fix it. Guess it's my react native version that messed it up. Not sure if I'm down to downgrade my react native version to make this work.

@ammarahm-ed
Copy link
Owner

Hi, can you try v0.10.3? Also do you have new arch enabled or disabled?

@dppo
Copy link

dppo commented Aug 22, 2024

Hi, can you try v0.10.3? Also do you have new arch enabled or disabled?

Had the same problem on Android,react-native 0.75.2 and new arch enabled

@MrMicrowaveOven
Copy link
Author

@ammarahm-ed Holy cow, switching to v0.10.3 fixed it!

Not familiar with new arch, but I'm guessing you're referring to this line:

# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false

Now that it works, I'm not going to mess with newArch. Should it be on though?

@i-void
Copy link

i-void commented Sep 4, 2024

I'm also getting this error on my mobile phone with expo development (It works with emulator).
"react-native": "0.74.5",
"react-native-mmkv-storage": "^0.9.1", (and 0.10.3) both doesn't work.

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

5 participants