Closed
Description
MMKV does not show up in the left side of Android Studio (dependencies), and can therefore not be imported (as shown in the installation step in the readme).
The current workaround for this is:
- Add this to
settings.gradle
:
include ':react-native-mmkv'
project(':react-native-mmkv').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mmkv/android/')
- Add this to
build.gradle
(inapp/
), inside ofdependencies
(underimplementation("com.facebook.react:react-native:+")
):
implementation project(':react-native-mmkv')
I am not sure what is missing from my configuration, but this will likely change soon when TurboModules will be released (maybe RN 0.65?), because I will rewrite the library - no extra installation steps will be needed then!