Skip to content

MMKV does not correctly autolink #37

Closed
@mrousavy

Description

@mrousavy

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:

  1. Add this to settings.gradle:
include ':react-native-mmkv'
project(':react-native-mmkv').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mmkv/android/')
  1. Add this to build.gradle (in app/), inside of dependencies (under implementation("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!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions