diff --git a/src/lib/api/native/modules/index.ts b/src/lib/api/native/modules/index.ts index c0736ed..a31dead 100644 --- a/src/lib/api/native/modules/index.ts +++ b/src/lib/api/native/modules/index.ts @@ -2,7 +2,7 @@ import { RNModules } from "./types"; const nmp = window.nativeModuleProxy; -export const MMKVManager = nmp.MMKVManager as RNModules.MMKVManager; +export const MMKVManager = (nmp.NativeCacheModule ?? nmp.MMKVManager) as RNModules.MMKVManager; export const FileManager = (nmp.NativeFileModule ?? nmp.RTNFileManager ?? nmp.DCDFileManager) as RNModules.FileManager; export const ClientInfoManager = nmp.NativeClientInfoModule ?? nmp.RTNClientInfoManager ?? nmp.InfoDictionaryManager; export const DeviceManager = nmp.NativeDeviceModule ?? nmp.RTNDeviceManager ?? nmp.DCDDeviceManager;