File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
src/main/java/com/rnuilib Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import com.android.build.OutputFile
4
4
5
5
project. ext. react = [
6
6
entryFile : " index.js" ,
7
- enableHermes : false , // clean and rebuild if changing
7
+ enableHermes : true , // clean and rebuild if changing
8
8
]
9
9
10
10
apply from : " ../../node_modules/react-native/react.gradle"
Original file line number Diff line number Diff line change 11
11
import com .wix .reactnativeuilib .UiLibPackageList ;
12
12
import java .lang .reflect .InvocationTargetException ;
13
13
import java .util .List ;
14
+ import com .facebook .react .bridge .JSIModulePackage ;
15
+ import com .swmansion .reanimated .ReanimatedJSIModulePackage ;
14
16
15
17
16
18
public class MainApplication extends NavigationApplication {
@@ -21,6 +23,11 @@ protected String getJSMainModuleName() {
21
23
return "demo" ;
22
24
}
23
25
26
+ @ Override
27
+ protected JSIModulePackage getJSIModulePackage () {
28
+ return new ReanimatedJSIModulePackage ();
29
+ }
30
+
24
31
@ Override
25
32
public boolean getUseDeveloperSupport () {
26
33
return BuildConfig .DEBUG ;
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
env : {
3
3
test : {
4
- presets : [ 'module:metro-react-native-babel-preset' ]
4
+ presets : [ 'module:metro-react-native-babel-preset' ] ,
5
+ plugins : [ 'react-native-reanimated/plugin' ]
5
6
}
6
7
} ,
7
- presets : [ 'module:metro-react-native-babel-preset' ]
8
+ presets : [ 'module:metro-react-native-babel-preset' ] ,
9
+ plugins : [ 'react-native-reanimated/plugin' ]
8
10
} ;
Original file line number Diff line number Diff line change 99
99
"react-native-gesture-handler" : " 1.9.0" ,
100
100
"react-native-keyboard-tracking-view" : " ^5.6.1" ,
101
101
"react-native-navigation" : " 7.6.0" ,
102
- "react-native-reanimated" : " 1.13.2 " ,
102
+ "react-native-reanimated" : " 2.0.0 " ,
103
103
"react-test-renderer" : " ^16.13.1" ,
104
104
"shell-utils" : " ^1.0.10" ,
105
105
"typescript" : " 3.9.7"
108
108
"react" : " >=16.0.0" ,
109
109
"react-native" : " >=0.63.4" ,
110
110
"react-native-gesture-handler" : " >=1.9.0" ,
111
- "react-native-reanimated" : " >=1.13.2 " ,
111
+ "react-native-reanimated" : " >=2.0.0 " ,
112
112
"@react-native-community/blur" : " >=3.4.1" ,
113
113
"@react-native-community/datetimepicker" : " ^2.1.0" ,
114
114
"@react-native-community/netinfo" : " ^5.6.2" ,
You can’t perform that action at this time.
0 commit comments