File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Plug MMKV in `MainApplication.java`
2626
2727``` java
2828import com.ammarahmed.mmkv.RNMMKVJSIModulePackage ; // <- add here
29-
29+ import com.facebook.react.bridge.JSIModulePackage ; // <- add here
3030public class MainApplication extends Application implements ReactApplication {
3131
3232 private final ReactNativeHost mReactNativeHost =
@@ -79,6 +79,7 @@ import java.util.List;
7979import com.swmansion.reanimated. ReanimatedJSIModulePackage ; // <-- ADD THIS
8080import com.ammarahmed.mmkv. RNMMKVModule ; // <-- ADD THIS
8181
82+
8283public class RNMMKVJSIModulePackage implements ReanimatedJSIModulePackage { // <--- REPLACE RNMMKVJSIModulePackage implements JSIModulePackage with CustomMMKVJSIModulePackage extends ReanimatedJSIModulePackage
8384 @Override
8485 public List<JSIModuleSpec > getJSIModules (ReactApplicationContext reactApplicationContext , JavaScriptContextHolder jsContext ) {
@@ -95,7 +96,7 @@ then import this file instead in `MainApplication.java` as mentioned above and m
9596
9697```java
9798import com.your.project.name. CustomMMKVJSIModulePackage ; // <- add here
98-
99+ import com.facebook.react.bridge . JSIModulePackage ; // <-- ADD THIS
99100public class MainApplication extends Application implements ReactApplication {
100101
101102 private final ReactNativeHost mReactNativeHost =
You can’t perform that action at this time.
0 commit comments