File tree 3 files changed +11
-0
lines changed
src/main/java/com/example/reactnativemultithreading
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 8
8
# http://developer.android.com/guide/developing/tools/proguard.html
9
9
10
10
# Add any project specific keep options here:
11
+
12
+ -keep class com.facebook.react.turbomodule.** { *; }
Original file line number Diff line number Diff line change 12
12
import java .util .List ;
13
13
import com .reactnativemultithreading .MultithreadingPackage ;
14
14
15
+ import com .facebook .react .bridge .JSIModulePackage ;
16
+ import com .swmansion .reanimated .ReanimatedJSIModulePackage ;
17
+
15
18
public class MainApplication extends Application implements ReactApplication {
16
19
17
20
private final ReactNativeHost mReactNativeHost =
@@ -35,6 +38,11 @@ protected List<ReactPackage> getPackages() {
35
38
protected String getJSMainModuleName () {
36
39
return "index" ;
37
40
}
41
+
42
+ @ Override
43
+ protected JSIModulePackage getJSIModulePackage () {
44
+ return new ReanimatedJSIModulePackage (); // <- add
45
+ }
38
46
};
39
47
40
48
@ Override
Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ module.exports = {
12
12
} ,
13
13
} ,
14
14
] ,
15
+ 'react-native-reanimated/plugin' ,
15
16
] ,
16
17
} ;
You can’t perform that action at this time.
0 commit comments