Skip to content

Commit c2ac3b2

Browse files
committed
docs(SETUP.md): correct and extend other JSI libs example
1 parent 5f9a91b commit c2ac3b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SETUP.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ Since pure JSI Modules cannot be autolinked yet, you have to manually initialize
9292
import com.facebook.react.bridge.JSIModuleSpec;
9393
import com.facebook.react.bridge.JavaScriptContextHolder;
9494
import com.facebook.react.bridge.ReactApplicationContext;
95+
9596
import com.swmansion.reanimated.ReanimatedJSIModulePackage;
96-
import com.reactnativemmkv.MultithreadingModule;
97+
import com.reactnativemmkv.MmkvModule;
98+
import com.reactnativemultithreading.MultithreadingModule;
9799

98100
import java.util.Collections;
99101
import java.util.List;
@@ -103,6 +105,7 @@ Since pure JSI Modules cannot be autolinked yet, you have to manually initialize
103105
@Override
104106
public List<JSIModuleSpec> getJSIModules(ReactApplicationContext reactApplicationContext, JavaScriptContextHolder jsContext) {
105107
super.getJSIModules(reactApplicationContext, jsContext);
108+
MmkvModule.install(jsContext, reactApplicationContext.getFilesDir().getAbsolutePath() + "/mmkv");
106109
MultithreadingModule.install(reactApplicationContext, jsContext);
107110
return Collections.emptyList();
108111
}

0 commit comments

Comments
 (0)