react-native-reanimated 2.3.0-beta.2 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +12 -3
  2. package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +13 -0
  3. package/Common/cpp/Registries/EventHandlerRegistry.cpp +2 -2
  4. package/Common/cpp/Registries/MapperRegistry.cpp +5 -5
  5. package/Common/cpp/SharedItems/FrozenObject.cpp +1 -3
  6. package/Common/cpp/SharedItems/ShareableValue.cpp +8 -10
  7. package/Common/cpp/Tools/FeaturesConfig.cpp +5 -0
  8. package/Common/cpp/Tools/JSIStoreValueUser.cpp +8 -8
  9. package/Common/cpp/Tools/Mapper.cpp +1 -1
  10. package/Common/cpp/Tools/RuntimeDecorator.cpp +40 -4
  11. package/Common/cpp/Tools/WorkletEventHandler.cpp +3 -1
  12. package/Common/cpp/headers/NativeModules/NativeReanimatedModule.h +5 -0
  13. package/Common/cpp/headers/NativeModules/NativeReanimatedModuleSpec.h +6 -1
  14. package/Common/cpp/headers/Registries/EventHandlerRegistry.h +1 -0
  15. package/Common/cpp/headers/Registries/MapperRegistry.h +1 -0
  16. package/Common/cpp/headers/SharedItems/FrozenObject.h +4 -0
  17. package/Common/cpp/headers/SharedItems/HostFunctionHandler.h +2 -0
  18. package/Common/cpp/headers/SharedItems/MutableValue.h +2 -0
  19. package/Common/cpp/headers/SharedItems/MutableValueSetterProxy.h +3 -1
  20. package/Common/cpp/headers/SharedItems/RemoteObject.h +4 -1
  21. package/Common/cpp/headers/SharedItems/ShareableValue.h +2 -0
  22. package/Common/cpp/headers/SharedItems/SharedParent.h +9 -9
  23. package/Common/cpp/headers/SharedItems/ValueWrapper.h +32 -28
  24. package/Common/cpp/headers/SpecTools/ErrorHandler.h +1 -0
  25. package/Common/cpp/headers/Tools/FeaturesConfig.h +19 -0
  26. package/Common/cpp/headers/Tools/JSIStoreValueUser.h +2 -5
  27. package/Common/cpp/headers/Tools/Mapper.h +2 -0
  28. package/Common/cpp/headers/Tools/PlatformDepMethodsHolder.h +5 -0
  29. package/Common/cpp/headers/Tools/ReanimatedHiddenHeaders.h +1 -5
  30. package/Common/cpp/headers/Tools/RuntimeDecorator.h +10 -7
  31. package/Common/cpp/headers/Tools/Scheduler.h +2 -0
  32. package/Common/cpp/headers/Tools/WorkletEventHandler.h +2 -1
  33. package/Common/cpp/hidden_headers/Logger.h +2 -2
  34. package/Common/cpp/hidden_headers/LoggerInterface.h +1 -1
  35. package/README.md +1 -1
  36. package/RNReanimated.podspec +21 -3
  37. package/android/build.gradle +33 -13
  38. package/android/expo/linking.gradle +46 -0
  39. package/android/expo/src/main/java/com/swmansion/reanimated/EXReanimatedAdapter.java +12 -0
  40. package/android/expo/src/main/java/expo/modules/adapters/reanimated/EXReanimatedPackage.java +26 -0
  41. package/android/react-native-reanimated-63-hermes.aar +0 -0
  42. package/android/react-native-reanimated-63-jsc.aar +0 -0
  43. package/android/react-native-reanimated-64-hermes.aar +0 -0
  44. package/android/react-native-reanimated-64-jsc.aar +0 -0
  45. package/android/react-native-reanimated-65-hermes.aar +0 -0
  46. package/android/react-native-reanimated-65-jsc.aar +0 -0
  47. package/android/react-native-reanimated-66-hermes.aar +0 -0
  48. package/android/react-native-reanimated-66-jsc.aar +0 -0
  49. package/android/react-native-reanimated-67-hermes.aar +0 -0
  50. package/android/react-native-reanimated-67-jsc.aar +0 -0
  51. package/expo-module.config.json +3 -0
  52. package/ios/LayoutReanimation/REAAnimationsManager.m +65 -19
  53. package/ios/LayoutReanimation/REAUIManager.mm +101 -61
  54. package/ios/Nodes/REAPropsNode.m +1 -1
  55. package/ios/REAEventDispatcher.m +1 -1
  56. package/ios/REAModule.h +0 -2
  57. package/ios/REAModule.m +0 -3
  58. package/ios/REANodesManager.m +1 -0
  59. package/ios/RNGestureHandlerStateManager.h +5 -0
  60. package/ios/native/NativeMethods.h +5 -0
  61. package/ios/native/NativeMethods.mm +14 -6
  62. package/ios/native/NativeProxy.h +1 -0
  63. package/ios/native/NativeProxy.mm +84 -63
  64. package/ios/native/REAIOSErrorHandler.mm +19 -15
  65. package/ios/native/REAIOSLogger.mm +10 -6
  66. package/ios/native/REAIOSScheduler.mm +17 -10
  67. package/ios/native/REAInitializer.mm +39 -37
  68. package/ios/native/UIResponder+Reanimated.mm +2 -2
  69. package/lib/Animated.js +11 -5
  70. package/lib/ConfigHelper.js +121 -138
  71. package/lib/ReanimatedEventEmitter.js +0 -1
  72. package/lib/ReanimatedModule.js +0 -1
  73. package/lib/ReanimatedModule.macos.js +0 -1
  74. package/lib/ReanimatedModule.native.js +5 -6
  75. package/lib/ReanimatedModule.windows.js +0 -1
  76. package/lib/ReanimatedModuleCompat.js +64 -35
  77. package/lib/createAnimatedComponent.js +469 -499
  78. package/lib/index.js +11 -5
  79. package/lib/reanimated1/core/Core.test.js +1 -1
  80. package/lib/reanimated2/NativeMethods.js +7 -0
  81. package/lib/reanimated2/NativeReanimated/NativeReanimated.js +3 -0
  82. package/lib/reanimated2/PropAdapters.js +0 -1
  83. package/lib/reanimated2/UpdateProps.js +1 -1
  84. package/lib/reanimated2/ViewDescriptorsSet.js +4 -2
  85. package/lib/reanimated2/animation/spring.js +2 -0
  86. package/lib/reanimated2/animation/styleAnimation.js +5 -1
  87. package/lib/reanimated2/animation/util.js +23 -0
  88. package/lib/reanimated2/component/FlatList.js +30 -0
  89. package/lib/reanimated2/component/WrappedComponents.js +9 -0
  90. package/lib/reanimated2/component/index.js +4 -0
  91. package/lib/reanimated2/core.js +34 -6
  92. package/lib/reanimated2/globals.d.ts +8 -0
  93. package/lib/reanimated2/js-reanimated/JSReanimated.js +4 -0
  94. package/lib/reanimated2/js-reanimated/Mapper.js +4 -3
  95. package/lib/reanimated2/js-reanimated/MapperRegistry.js +3 -6
  96. package/lib/reanimated2/js-reanimated/MutableValue.js +0 -2
  97. package/lib/reanimated2/js-reanimated/index.js +10 -8
  98. package/lib/reanimated2/layoutReanimation/LayoutAnimationRepository.js +14 -5
  99. package/lib/reanimated2/layoutReanimation/defaultAnimations/Default.js +14 -14
  100. package/lib/reanimated2/layoutReanimation/defaultAnimations/Flip.js +8 -8
  101. package/lib/reanimated2/layoutReanimation/defaultAnimations/Rotate.js +16 -16
  102. package/lib/reanimated2/layoutReanimation/defaultAnimations/Slide.js +16 -16
  103. package/lib/reanimated2/layoutReanimation/defaultAnimations/Zoom.js +4 -4
  104. package/lib/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.js +20 -8
  105. package/lib/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.js +3 -3
  106. package/lib/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.js +8 -8
  107. package/lib/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.js +10 -10
  108. package/lib/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.js +8 -8
  109. package/lib/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.js +8 -8
  110. package/lib/reanimated2/mock.js +3 -1
  111. package/lib/setAndForwardRef.js +14 -48
  112. package/mock.js +1 -1
  113. package/package.json +27 -23
  114. package/plugin.js +111 -110
  115. package/react-native-reanimated.d.ts +56 -27
  116. package/src/Animated.js +11 -5
  117. package/src/{ConfigHelper.js → ConfigHelper.ts} +15 -7
  118. package/src/{ReanimatedEventEmitter.js → ReanimatedEventEmitter.ts} +0 -0
  119. package/src/{ReanimatedModule.js → ReanimatedModule.macos.ts} +0 -0
  120. package/src/{ReanimatedModule.native.js → ReanimatedModule.native.ts} +0 -0
  121. package/src/{ReanimatedModule.macos.js → ReanimatedModule.ts} +0 -0
  122. package/src/{ReanimatedModule.windows.js → ReanimatedModule.windows.ts} +0 -0
  123. package/src/ReanimatedModuleCompat.ts +51 -0
  124. package/src/{createAnimatedComponent.js → createAnimatedComponent.tsx} +278 -124
  125. package/src/reanimated1/core/Core.test.js +1 -1
  126. package/src/reanimated2/NativeMethods.ts +13 -1
  127. package/src/reanimated2/NativeReanimated/NativeReanimated.ts +5 -11
  128. package/src/reanimated2/PropAdapters.ts +0 -1
  129. package/src/reanimated2/UpdateProps.ts +1 -1
  130. package/src/reanimated2/ViewDescriptorsSet.ts +6 -2
  131. package/src/reanimated2/animation/commonTypes.ts +4 -4
  132. package/src/reanimated2/animation/decay.ts +2 -2
  133. package/src/reanimated2/animation/delay.ts +3 -3
  134. package/src/reanimated2/animation/index.ts +7 -7
  135. package/src/reanimated2/animation/repeat.ts +4 -4
  136. package/src/reanimated2/animation/sequence.ts +2 -2
  137. package/src/reanimated2/animation/spring.ts +6 -5
  138. package/src/reanimated2/animation/styleAnimation.ts +24 -12
  139. package/src/reanimated2/animation/timing.ts +5 -5
  140. package/src/reanimated2/animation/util.ts +45 -6
  141. package/src/reanimated2/component/FlatList.tsx +44 -0
  142. package/src/reanimated2/component/WrappedComponents.ts +11 -0
  143. package/src/reanimated2/component/index.ts +9 -0
  144. package/src/reanimated2/core.ts +62 -17
  145. package/src/reanimated2/globals.d.ts +8 -0
  146. package/src/reanimated2/hook/useAnimatedStyle.ts +2 -2
  147. package/src/reanimated2/js-reanimated/JSReanimated.ts +15 -26
  148. package/src/reanimated2/js-reanimated/Mapper.ts +22 -9
  149. package/src/reanimated2/js-reanimated/MapperRegistry.ts +22 -19
  150. package/src/reanimated2/js-reanimated/MutableValue.ts +11 -11
  151. package/src/reanimated2/js-reanimated/index.ts +31 -14
  152. package/src/reanimated2/layoutReanimation/{LayoutAnimationRepository.tsx → LayoutAnimationRepository.ts} +18 -5
  153. package/src/reanimated2/layoutReanimation/animationBuilder/commonTypes.ts +39 -20
  154. package/src/reanimated2/layoutReanimation/animationBuilder/index.ts +5 -1
  155. package/src/reanimated2/layoutReanimation/defaultAnimations/Default.ts +21 -15
  156. package/src/reanimated2/layoutReanimation/defaultAnimations/Flip.ts +29 -24
  157. package/src/reanimated2/layoutReanimation/defaultAnimations/Rotate.ts +61 -34
  158. package/src/reanimated2/layoutReanimation/defaultAnimations/Slide.ts +49 -34
  159. package/src/reanimated2/layoutReanimation/defaultAnimations/Zoom.ts +17 -12
  160. package/src/reanimated2/layoutReanimation/defaultTransitions/CurvedTransition.ts +20 -8
  161. package/src/reanimated2/layoutReanimation/defaultTransitions/EntryExitTransition.ts +9 -9
  162. package/src/reanimated2/layoutReanimation/defaultTransitions/FadingTransition.ts +8 -8
  163. package/src/reanimated2/layoutReanimation/defaultTransitions/JumpingTransition.ts +20 -14
  164. package/src/reanimated2/layoutReanimation/defaultTransitions/LinearTransition.ts +14 -8
  165. package/src/reanimated2/layoutReanimation/defaultTransitions/SequencedTransition.ts +24 -12
  166. package/src/reanimated2/mock.ts +3 -1
  167. package/src/{setAndForwardRef.js → setAndForwardRef.ts} +12 -2
  168. package/src/ReanimatedModuleCompat.js +0 -37
@@ -1,163 +1,146 @@
1
1
  import ReanimatedModule from './ReanimatedModule';
2
-
3
2
  /**
4
3
  * Styles allowed to be direcly updated in UI thread
5
4
  */
6
5
  let UI_THREAD_PROPS_WHITELIST = {
7
- opacity: true,
8
- transform: true,
9
- /* colors */
10
- backgroundColor: true,
11
- borderRightColor: true,
12
- borderBottomColor: true,
13
- borderColor: true,
14
- borderEndColor: true,
15
- borderLeftColor: true,
16
- borderStartColor: true,
17
- borderTopColor: true,
18
- /* ios styles */
19
- shadowOpacity: true,
20
- shadowRadius: true,
21
- /* legacy android transform properties */
22
- scaleX: true,
23
- scaleY: true,
24
- translateX: true,
25
- translateY: true,
6
+ opacity: true,
7
+ transform: true,
8
+ /* colors */
9
+ backgroundColor: true,
10
+ borderRightColor: true,
11
+ borderBottomColor: true,
12
+ borderColor: true,
13
+ borderEndColor: true,
14
+ borderLeftColor: true,
15
+ borderStartColor: true,
16
+ borderTopColor: true,
17
+ /* ios styles */
18
+ shadowOpacity: true,
19
+ shadowRadius: true,
20
+ /* legacy android transform properties */
21
+ scaleX: true,
22
+ scaleY: true,
23
+ translateX: true,
24
+ translateY: true,
26
25
  };
27
-
28
26
  /**
29
27
  * Whitelist of view props that can be updated in native thread via UIManagerModule
30
28
  */
31
29
  let NATIVE_THREAD_PROPS_WHITELIST = {
32
- borderBottomWidth: true,
33
- borderEndWidth: true,
34
- borderLeftWidth: true,
35
- borderRightWidth: true,
36
- borderStartWidth: true,
37
- borderTopWidth: true,
38
- borderWidth: true,
39
- bottom: true,
40
- flex: true,
41
- flexGrow: true,
42
- flexShrink: true,
43
- height: true,
44
- left: true,
45
- margin: true,
46
- marginBottom: true,
47
- marginEnd: true,
48
- marginHorizontal: true,
49
- marginLeft: true,
50
- marginRight: true,
51
- marginStart: true,
52
- marginTop: true,
53
- marginVertical: true,
54
- maxHeight: true,
55
- maxWidth: true,
56
- minHeight: true,
57
- minWidth: true,
58
- padding: true,
59
- paddingBottom: true,
60
- paddingEnd: true,
61
- paddingHorizontal: true,
62
- paddingLeft: true,
63
- paddingRight: true,
64
- paddingStart: true,
65
- paddingTop: true,
66
- paddingVertical: true,
67
- right: true,
68
- start: true,
69
- top: true,
70
- width: true,
71
- zIndex: true,
72
- borderBottomEndRadius: true,
73
- borderBottomLeftRadius: true,
74
- borderBottomRightRadius: true,
75
- borderBottomStartRadius: true,
76
- borderRadius: true,
77
- borderTopEndRadius: true,
78
- borderTopLeftRadius: true,
79
- borderTopRightRadius: true,
80
- borderTopStartRadius: true,
81
- opacity: true,
82
- elevation: true,
83
- fontSize: true,
84
- lineHeight: true,
85
- textShadowRadius: true,
86
- letterSpacing: true,
87
- /* strings */
88
- display: true,
89
- backfaceVisibility: true,
90
- overflow: true,
91
- resizeMode: true,
92
- fontStyle: true,
93
- fontWeight: true,
94
- textAlign: true,
95
- textDecorationLine: true,
96
- fontFamily: true,
97
- textAlignVertical: true,
98
- fontVariant: true,
99
- textDecorationStyle: true,
100
- textTransform: true,
101
- writingDirection: true,
102
- /* text color */
103
- color: true,
104
- tintColor: true,
105
- shadowColor: true,
106
- placeholderTextColor: true,
30
+ borderBottomWidth: true,
31
+ borderEndWidth: true,
32
+ borderLeftWidth: true,
33
+ borderRightWidth: true,
34
+ borderStartWidth: true,
35
+ borderTopWidth: true,
36
+ borderWidth: true,
37
+ bottom: true,
38
+ flex: true,
39
+ flexGrow: true,
40
+ flexShrink: true,
41
+ height: true,
42
+ left: true,
43
+ margin: true,
44
+ marginBottom: true,
45
+ marginEnd: true,
46
+ marginHorizontal: true,
47
+ marginLeft: true,
48
+ marginRight: true,
49
+ marginStart: true,
50
+ marginTop: true,
51
+ marginVertical: true,
52
+ maxHeight: true,
53
+ maxWidth: true,
54
+ minHeight: true,
55
+ minWidth: true,
56
+ padding: true,
57
+ paddingBottom: true,
58
+ paddingEnd: true,
59
+ paddingHorizontal: true,
60
+ paddingLeft: true,
61
+ paddingRight: true,
62
+ paddingStart: true,
63
+ paddingTop: true,
64
+ paddingVertical: true,
65
+ right: true,
66
+ start: true,
67
+ top: true,
68
+ width: true,
69
+ zIndex: true,
70
+ borderBottomEndRadius: true,
71
+ borderBottomLeftRadius: true,
72
+ borderBottomRightRadius: true,
73
+ borderBottomStartRadius: true,
74
+ borderRadius: true,
75
+ borderTopEndRadius: true,
76
+ borderTopLeftRadius: true,
77
+ borderTopRightRadius: true,
78
+ borderTopStartRadius: true,
79
+ opacity: true,
80
+ elevation: true,
81
+ fontSize: true,
82
+ lineHeight: true,
83
+ textShadowRadius: true,
84
+ letterSpacing: true,
85
+ /* strings */
86
+ display: true,
87
+ backfaceVisibility: true,
88
+ overflow: true,
89
+ resizeMode: true,
90
+ fontStyle: true,
91
+ fontWeight: true,
92
+ textAlign: true,
93
+ textDecorationLine: true,
94
+ fontFamily: true,
95
+ textAlignVertical: true,
96
+ fontVariant: true,
97
+ textDecorationStyle: true,
98
+ textTransform: true,
99
+ writingDirection: true,
100
+ /* text color */
101
+ color: true,
102
+ tintColor: true,
103
+ shadowColor: true,
104
+ placeholderTextColor: true,
107
105
  };
108
-
109
106
  function configureProps() {
110
- ReanimatedModule.configureProps(
111
- Object.keys(NATIVE_THREAD_PROPS_WHITELIST),
112
- Object.keys(UI_THREAD_PROPS_WHITELIST)
113
- );
107
+ ReanimatedModule.configureProps(Object.keys(NATIVE_THREAD_PROPS_WHITELIST), Object.keys(UI_THREAD_PROPS_WHITELIST));
114
108
  }
115
-
116
109
  export function addWhitelistedNativeProps(props) {
117
- const oldSize = Object.keys(NATIVE_THREAD_PROPS_WHITELIST).length;
118
- NATIVE_THREAD_PROPS_WHITELIST = {
119
- ...NATIVE_THREAD_PROPS_WHITELIST,
120
- ...props,
121
- };
122
- if (oldSize !== Object.keys(NATIVE_THREAD_PROPS_WHITELIST).length) {
123
- configureProps();
124
- }
110
+ const oldSize = Object.keys(NATIVE_THREAD_PROPS_WHITELIST).length;
111
+ NATIVE_THREAD_PROPS_WHITELIST = Object.assign(Object.assign({}, NATIVE_THREAD_PROPS_WHITELIST), props);
112
+ if (oldSize !== Object.keys(NATIVE_THREAD_PROPS_WHITELIST).length) {
113
+ configureProps();
114
+ }
125
115
  }
126
-
127
116
  export function addWhitelistedUIProps(props) {
128
- const oldSize = Object.keys(UI_THREAD_PROPS_WHITELIST).length;
129
- UI_THREAD_PROPS_WHITELIST = { ...UI_THREAD_PROPS_WHITELIST, ...props };
130
- if (oldSize !== Object.keys(UI_THREAD_PROPS_WHITELIST).length) {
131
- configureProps();
132
- }
117
+ const oldSize = Object.keys(UI_THREAD_PROPS_WHITELIST).length;
118
+ UI_THREAD_PROPS_WHITELIST = Object.assign(Object.assign({}, UI_THREAD_PROPS_WHITELIST), props);
119
+ if (oldSize !== Object.keys(UI_THREAD_PROPS_WHITELIST).length) {
120
+ configureProps();
121
+ }
133
122
  }
134
-
135
123
  const PROCESSED_VIEW_NAMES = new Set();
136
124
  /**
137
125
  * updates UI props whitelist for given view host instance
138
126
  * this will work just once for every view name
139
127
  */
140
128
  export function adaptViewConfig(viewConfig) {
141
- const viewName = viewConfig.uiViewClassName;
142
- const props = viewConfig.validAttributes;
143
-
144
- // update whitelist of UI props for this view name only once
145
- if (!PROCESSED_VIEW_NAMES.has(viewName)) {
146
- const propsToAdd = {};
147
- Object.keys(props).forEach((key) => {
148
- // we don't want to add native props as they affect layout
149
- // we also skip props which repeat here
150
- if (
151
- !(key in NATIVE_THREAD_PROPS_WHITELIST) &&
152
- !(key in UI_THREAD_PROPS_WHITELIST)
153
- ) {
154
- propsToAdd[key] = true;
155
- }
156
- });
157
- addWhitelistedUIProps(propsToAdd);
158
-
159
- PROCESSED_VIEW_NAMES.add(viewName);
160
- }
129
+ const viewName = viewConfig.uiViewClassName;
130
+ const props = viewConfig.validAttributes;
131
+ // update whitelist of UI props for this view name only once
132
+ if (!PROCESSED_VIEW_NAMES.has(viewName)) {
133
+ const propsToAdd = {};
134
+ Object.keys(props).forEach((key) => {
135
+ // we don't want to add native props as they affect layout
136
+ // we also skip props which repeat here
137
+ if (!(key in NATIVE_THREAD_PROPS_WHITELIST) &&
138
+ !(key in UI_THREAD_PROPS_WHITELIST)) {
139
+ propsToAdd[key] = true;
140
+ }
141
+ });
142
+ addWhitelistedUIProps(propsToAdd);
143
+ PROCESSED_VIEW_NAMES.add(viewName);
144
+ }
161
145
  }
162
-
163
146
  configureProps();
@@ -1,4 +1,3 @@
1
1
  import ReanimatedModule from './ReanimatedModule';
2
2
  import { NativeEventEmitter } from 'react-native';
3
-
4
3
  export default new NativeEventEmitter(ReanimatedModule);
@@ -1,3 +1,2 @@
1
1
  import ReanimatedModuleCompat from './ReanimatedModuleCompat';
2
-
3
2
  export default ReanimatedModuleCompat;
@@ -1,3 +1,2 @@
1
1
  import ReanimatedModuleCompat from './ReanimatedModuleCompat';
2
-
3
2
  export default ReanimatedModuleCompat;
@@ -1,13 +1,12 @@
1
1
  import { NativeModules } from 'react-native';
2
2
  import ReanimatedModuleCompat from './ReanimatedModuleCompat';
3
3
  import { nativeShouldBeMock } from './reanimated2/PlatformChecker';
4
-
5
4
  let exportedModule;
6
5
  if (nativeShouldBeMock()) {
7
- exportedModule = ReanimatedModuleCompat;
8
- } else {
9
- const { ReanimatedModule } = NativeModules;
10
- exportedModule = ReanimatedModule;
6
+ exportedModule = ReanimatedModuleCompat;
7
+ }
8
+ else {
9
+ const { ReanimatedModule } = NativeModules;
10
+ exportedModule = ReanimatedModule;
11
11
  }
12
-
13
12
  export default exportedModule;
@@ -1,3 +1,2 @@
1
1
  import ReanimatedModuleCompat from './ReanimatedModuleCompat';
2
-
3
2
  export default ReanimatedModuleCompat;
@@ -1,37 +1,66 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
1
10
  export default {
2
- async disconnectNodeFromView() {
3
- // noop
4
- },
5
- async attachEvent(_viewTag, _eventName, _nodeID) {
6
- // noop
7
- },
8
- async detachEvent(_viewTag, _eventName, _nodeID) {
9
- // noop
10
- },
11
- async createNode(_nodeID, _config) {
12
- // noop
13
- },
14
- async dropNode(_nodeID) {
15
- // noop
16
- },
17
- async configureProps() {
18
- // noop
19
- },
20
- async disconnectNodes() {
21
- // noop
22
- },
23
- async addListener() {
24
- // noop
25
- },
26
- async removeListeners() {
27
- // noop
28
- },
29
- async removeAllListeners() {
30
- // noop
31
- },
32
- async animateNextTransition() {
33
- console.warn(
34
- 'Reanimated: animateNextTransition is unimplemented on current platform'
35
- );
36
- },
11
+ disconnectNodeFromView() {
12
+ return __awaiter(this, void 0, void 0, function* () {
13
+ // noop
14
+ });
15
+ },
16
+ attachEvent(_viewTag, _eventName, _nodeID) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ // noop
19
+ });
20
+ },
21
+ detachEvent(_viewTag, _eventName, _nodeID) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ // noop
24
+ });
25
+ },
26
+ createNode(_nodeID, _config) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ // noop
29
+ });
30
+ },
31
+ dropNode(_nodeID) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ // noop
34
+ });
35
+ },
36
+ configureProps(_nativeProps, _uiProps) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ // noop
39
+ });
40
+ },
41
+ disconnectNodes() {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ // noop
44
+ });
45
+ },
46
+ addListener() {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ // noop
49
+ });
50
+ },
51
+ removeListeners() {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ // noop
54
+ });
55
+ },
56
+ removeAllListeners() {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ // noop
59
+ });
60
+ },
61
+ animateNextTransition() {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ console.warn('Reanimated: animateNextTransition is unimplemented on current platform');
64
+ });
65
+ },
37
66
  };