ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.59k stars 111 forks source link

mmkv folder exposed in the Files Application IOS #256

Open RZulfikri opened 2 years ago

RZulfikri commented 2 years ago

Describe the bug Hi, I'm trying to expose some of my files to the "Files" Application in the IOS, by enabling UIFileSharingEnabled: YES and LSSupportsOpeningDocumentsInPlace: YES. But, if I enable these options it will expose mmkv folder with mmkvIdStore files. Any advice to avoid this?

Expected behavior mmkv folder not show.

Screenshots If applicable, add screenshots to help explain your problem. Simulator Screen Shot - iPhone 13 Pro Max - 2022-05-26 at 14 59 51

Platform Information:

Thank you.

ammarahm-ed commented 2 years ago

I will have to investigate this. MMKV is initialized in NSLibraryDirectory intentionally to avoid this. Can you try to delete these files then open your app to see if everything still works correctly? Also check if after opening the app, these two files are recreated or not.

bolyesz commented 2 years ago

Any update on this one ?