react-native-devsettings icon indicating copy to clipboard operation
react-native-devsettings copied to clipboard

error message

Open JsonKit opened this issue 2 years ago • 8 comments

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.

JsonKit avatar Dec 15 '23 06:12 JsonKit

Please, share the react native version you are using

gusgard avatar Feb 17 '24 12:02 gusgard

same issue,

versions: "react-native": "0.73.4", "react-native-mmkv": "^2.12.1",

ramonxm avatar Feb 23 '24 14:02 ramonxm

Captura de Tela 2024-02-23 às 11 59 26

ramonxm avatar Feb 23 '24 14:02 ramonxm

same issue

StasSokolov1 avatar Mar 15 '24 18:03 StasSokolov1

I didn't have time to test it yet but React Native stopped supporting the internal API I was calling, I will create a new release soon with the fix for v0.73

gusgard avatar Mar 16 '24 00:03 gusgard

开启了本插件以后,是不是就不会使用hermes引擎了

yinminqian avatar Mar 24 '24 07:03 yinminqian

any news on a release working with RN 73+ ?

Lakston avatar May 23 '24 06:05 Lakston

Not sure this is the place to look for a work-around. The mmkv-react-native lists remote-debugging as a hard limitation. It would be awesome if it did fix it, but even if it does, we would probably still need the mmkv authors to turn off the warning. I've set up redux devtools using async-storage, and separately used mmkv for large files. If there is any instance of mmkv being used at all, anywhere in the app, it will throw the warning.

jehillert-ziosk avatar Aug 26 '24 01:08 jehillert-ziosk