Skip to content

Commit 7a9891e

Browse files
committed
Fix REA installation
1 parent 24af6ac commit 7a9891e

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

example/android/app/proguard-rules.pro

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
# http://developer.android.com/guide/developing/tools/proguard.html
99

1010
# Add any project specific keep options here:
11+
12+
-keep class com.facebook.react.turbomodule.** { *; }

example/android/app/src/main/java/com/example/reactnativemultithreading/MainApplication.java

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
import java.util.List;
1313
import com.reactnativemultithreading.MultithreadingPackage;
1414

15+
import com.facebook.react.bridge.JSIModulePackage;
16+
import com.swmansion.reanimated.ReanimatedJSIModulePackage;
17+
1518
public class MainApplication extends Application implements ReactApplication {
1619

1720
private final ReactNativeHost mReactNativeHost =
@@ -35,6 +38,11 @@ protected List<ReactPackage> getPackages() {
3538
protected String getJSMainModuleName() {
3639
return "index";
3740
}
41+
42+
@Override
43+
protected JSIModulePackage getJSIModulePackage() {
44+
return new ReanimatedJSIModulePackage(); // <- add
45+
}
3846
};
3947

4048
@Override

example/babel.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ module.exports = {
1212
},
1313
},
1414
],
15+
'react-native-reanimated/plugin',
1516
],
1617
};

0 commit comments

Comments
 (0)