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 on RN 0.74 #668
Comments
The new version for RN 0.74 is still work in progress. You can use beta channel to test it out but I am not sure if it's production ready. |
Thanks for your feedback, I tested version 3.0.0-beta.1 but my problem still exists. |
The mentioned issue above is not only for Android, but it is also for iOS, I encountered the issue after upgrading my RN app to 0.74 too. I thought it might be due to third-party integration, but it throws the error on the metro for a fresh app as well (the build is OK). It seems that the module cannot be installed or something similar when creating new instance, which throws the error: if (global.nativeCallSyncHook == null || MMKVModule.install == null) {
throw new Error(
'Failed to create a new MMKV instance: React Native is not running on-device. MMKV can only be used when synchronous method invocations (JSI) are possible. If you are using a remote debugger (e.g. Chrome), switch to an on-device debugger (e.g. Flipper) instead.'
);
} |
RN 0.74 is WIP here: #656 |
If you need this faster, consider sponsoring me to accelerate the development here. Currently I am working on VisionCamera instead of RN MMKV. |
Try using react-native-mmkv@beta (beta.5), this one works on react-native 0.74.0 and is built with a pure C++ TurboModule! (requires the new arch to be enabled) RN MMKV V3 should now also be much faster. |
I just tried and so far it seems to work! |
The beta 5 now It's working on both platforms. |
Yeah, |
Awesome, if you appreciate my dedication please consider sponsoring. |
When run in RN 0.73.7 all things are ok but RN 74 failed on Android with this message:
Error: Failed to create a new MMKV instance: React Native is not running on-device. MMKV can only be used when synchronous method invocations (JSI) are possible. If you are using a remote debugger (e.g. Chrome), switch to an on-device debugger (e.g. Flipper) instead.
The text was updated successfully, but these errors were encountered: