Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed May 7, 2021
1 parent 2f80479 commit 5865c23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Plug MMKV in `MainApplication.java`

```java
import com.ammarahmed.mmkv.RNMMKVJSIModulePackage; // <- add here

import com.facebook.react.bridge.JSIModulePackage; // <- add here
public class MainApplication extends Application implements ReactApplication {

private final ReactNativeHost mReactNativeHost =
Expand Down Expand Up @@ -79,6 +79,7 @@ import java.util.List;
import com.swmansion.reanimated.ReanimatedJSIModulePackage; // <-- ADD THIS
import com.ammarahmed.mmkv.RNMMKVModule; // <-- ADD THIS


public class RNMMKVJSIModulePackage implements ReanimatedJSIModulePackage { // <--- REPLACE RNMMKVJSIModulePackage implements JSIModulePackage with CustomMMKVJSIModulePackage extends ReanimatedJSIModulePackage
@Override
public List<JSIModuleSpec> getJSIModules(ReactApplicationContext reactApplicationContext, JavaScriptContextHolder jsContext) {
Expand All @@ -95,7 +96,7 @@ then import this file instead in `MainApplication.java` as mentioned above and m

```java
import com.your.project.name.CustomMMKVJSIModulePackage; // <- add here

import com.facebook.react.bridge.JSIModulePackage; // <-- ADD THIS
public class MainApplication extends Application implements ReactApplication {

private final ReactNativeHost mReactNativeHost =
Expand Down

1 comment on commit 5865c23

@vercel
Copy link

@vercel vercel bot commented on 5865c23 May 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.