diff --git a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
index 299942e..9c5b3f9 100644
--- a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
+++ b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
@@ -690,12 +690,12 @@ static void install(jsi::Runtime & jsiRuntime)
  
     mmkvInstances = [NSMutableDictionary dictionary];
     
-    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
-    NSString *libraryPath = (NSString *) [paths firstObject];
-    NSString *rootDir = [libraryPath stringByAppendingPathComponent:@"mmkv"];
-    rPath = rootDir;
+    NSBundle *bundle = [NSBundle mainBundle];
+    NSString *APP_GROUP_ID = [bundle objectForInfoDictionaryKey:@"AppGroupIdentifier"];
+    NSString *groupDir = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:APP_GROUP_ID].path;
+    rPath = groupDir;
     _secureStorage = [[SecureStorage alloc] init];
-    [MMKV initializeMMKV:rootDir];
+    [MMKV initializeMMKV:nil groupDir:groupDir logLevel:MMKVLogInfo];
     install(*(jsi::Runtime *)cxxBridge.runtime);
     [self migrate];
     
