Git Product home page Git Product logo

Comments (10)

mrousavy avatar mrousavy commented on June 8, 2024 23

Awesome, if you appreciate my dedication please consider sponsoring.
Lots of time went into the C++ rewrite

from react-native-mmkv.

mrousavy avatar mrousavy commented on June 8, 2024 11

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.

from react-native-mmkv.

mrousavy avatar mrousavy commented on June 8, 2024 4

RN 0.74 is WIP here: #656

from react-native-mmkv.

mrousavy avatar mrousavy commented on June 8, 2024 3

If you need this faster, consider sponsoring me to accelerate the development here. Currently I am working on VisionCamera instead of RN MMKV.

from react-native-mmkv.

Mhp23 avatar Mhp23 commented on June 8, 2024 2

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.'
  );
}

from react-native-mmkv.

miafoo avatar miafoo commented on June 8, 2024 1

Try using react-native-mmkv@beta (beta.5), this one works on react-native 0.74.0

I just tried and so far it seems to work!

from react-native-mmkv.

Mhp23 avatar Mhp23 commented on June 8, 2024 1

The beta 5 now It's working on both platforms.
Thank you @mrousavy

from react-native-mmkv.

matinzd avatar matinzd commented on June 8, 2024

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.

from react-native-mmkv.

Zarinia avatar Zarinia commented on June 8, 2024

Thanks for your feedback, I tested version 3.0.0-beta.1 but my problem still exists.

from react-native-mmkv.

Zarinia avatar Zarinia commented on June 8, 2024

Yeah,
beta 5 is working fine
thanks

from react-native-mmkv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.