-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
MMKV with Expo #261
Comments
Can you try this solution? |
Can you share the ADB logs? |
I was having the same issue but got it to work; when you say you 'run' the application, how are you doing that? This command works for me: You can omit out npm install, but do run a prebuild with clean switch, this seems to be running for me, but then now I'm facing an issue mentioned here |
MMKV 1.6.2 is working flawlessly on Expo SDK 44 with this config plugin: Running prebuild with |
@hirbod i tryed to use MMKV 1.6.2, create a file Change app.json to this: {
"expo": {
"name": "mmkvtest",
"slug": "mmkvtest",
"version": "1.0.0",
"assetBundlePatterns": [
"**/*"
],
"android": {
"package": "com.danilovieira.mmkvtest"
} // this is added after run `expo run:android`
},
"name": "mmkvtest",
"plugins": [
"./react-native-mmkv-plugin"
] // add 'plugins' line
} When i run
@mrousavy sorry for delay Am i doing something wrong? |
@intergalacticspacehighway according this comment it's working now but im still facering an error (above). |
@danilo-vieira kinda smells like windows weirdness. I am on Mac, not facing this issue :/ |
@hirbod lol so im doing it right? |
Thank you guys! The issue was only on Windows and this solution works for me. Thanks @hirbod |
I just ejected from expo and tried building this but get this error
Edit: I tried expo prebuild as well but it still shows this error |
@rupakhetibinit this looks like some kind of path issue on Windows. I don't have a windows system to test. This might sound weird but can you move your project to a folder that doesn't have spaces or try renaming |
@intergalacticspacehighway Unfortunately didn't work. I tried moving it to a location with no spaces in the file path yet still gives me this error. |
Im trying to setup mmkv in my Expo project but still with the following error:
Failed to create a new MMKV instance, the native initializer function does not exists
What i do according #157:
react-native-mmkv-plugin.js
at the project root;react-native-mmkv-plugin.js
;app.config.js
file and paste the following code according expo guide:expo prebuild
command and it shows:After that, i run the app and get the same error.
The text was updated successfully, but these errors were encountered: