File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
src/main/java/com/liquidswipereactnative Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ import com.android.build.OutputFile
78
78
*/
79
79
80
80
project. ext. react = [
81
- enableHermes : false , // clean and rebuild if changing
81
+ enableHermes : true , // clean and rebuild if changing
82
82
]
83
83
84
84
apply from : " ../../node_modules/react-native/react.gradle"
Original file line number Diff line number Diff line change 11
11
import java .lang .reflect .InvocationTargetException ;
12
12
import java .util .List ;
13
13
14
+ import com .facebook .react .bridge .JSIModulePackage ; // react native reanimated
15
+ import com .swmansion .reanimated .ReanimatedJSIModulePackage ; // react native reanimated
16
+
14
17
public class MainApplication extends Application implements ReactApplication {
15
18
16
19
private final ReactNativeHost mReactNativeHost =
@@ -33,6 +36,12 @@ protected List<ReactPackage> getPackages() {
33
36
protected String getJSMainModuleName () {
34
37
return "index" ;
35
38
}
39
+
40
+ // React native reanimated
41
+ @ Override
42
+ protected JSIModulePackage getJSIModulePackage () {
43
+ return new ReanimatedJSIModulePackage ();
44
+ }
36
45
};
37
46
38
47
@ Override
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- presets : [ 'module:metro-react-native-babel-preset' ] ,
3
- } ;
2
+ presets : [ "module:metro-react-native-babel-preset" ] ,
3
+ plugins : [ "react-native-reanimated/plugin" ] ,
4
+ }
You can’t perform that action at this time.
0 commit comments