react-native-reanimated 2.6.0 → 2.9.0

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 (164) hide show
  1. package/Common/cpp/SharedItems/ShareableValue.cpp +2 -2
  2. package/Common/cpp/Tools/RuntimeDecorator.cpp +17 -25
  3. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  5. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  7. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
  9. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  10. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  11. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  12. package/android/.gradle/checksums/checksums.lock +0 -0
  13. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  14. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  15. package/android/CMakeLists.txt +19 -8
  16. package/android/build.gradle +22 -8
  17. package/android/react-native-reanimated-65-hermes.aar +0 -0
  18. package/android/react-native-reanimated-65-jsc.aar +0 -0
  19. package/android/react-native-reanimated-66-hermes.aar +0 -0
  20. package/android/react-native-reanimated-66-jsc.aar +0 -0
  21. package/android/react-native-reanimated-67-hermes.aar +0 -0
  22. package/android/react-native-reanimated-67-jsc.aar +0 -0
  23. package/android/react-native-reanimated-68-hermes.aar +0 -0
  24. package/android/react-native-reanimated-68-jsc.aar +0 -0
  25. package/android/react-native-reanimated-69-hermes.aar +0 -0
  26. package/android/react-native-reanimated-69-jsc.aar +0 -0
  27. package/android/rnVersionPatch/69/.gitkeep +0 -0
  28. package/android/src/main/cpp/NativeProxy.cpp +35 -14
  29. package/android/src/main/cpp/headers/NativeProxy.h +2 -0
  30. package/android/src/main/java/com/swmansion/reanimated/NativeProxy.java +11 -8
  31. package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java +13 -6
  32. package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorListener.java +24 -1
  33. package/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensorType.java +7 -5
  34. package/ios/LayoutReanimation/REAAnimationsManager.h +1 -1
  35. package/ios/LayoutReanimation/REAAnimationsManager.m +2 -2
  36. package/ios/LayoutReanimation/REASnapshot.m +1 -1
  37. package/ios/LayoutReanimation/REAUIManager.h +1 -1
  38. package/ios/LayoutReanimation/REAUIManager.mm +4 -5
  39. package/ios/Nodes/REAAlwaysNode.h +1 -1
  40. package/ios/Nodes/REAAlwaysNode.m +5 -5
  41. package/ios/Nodes/REABezierNode.h +1 -1
  42. package/ios/Nodes/REABezierNode.m +4 -5
  43. package/ios/Nodes/REABlockNode.h +1 -1
  44. package/ios/Nodes/REABlockNode.m +2 -2
  45. package/ios/Nodes/REACallFuncNode.h +1 -1
  46. package/ios/Nodes/REACallFuncNode.m +5 -5
  47. package/ios/Nodes/REAClockNodes.h +1 -1
  48. package/ios/Nodes/REAClockNodes.m +4 -4
  49. package/ios/Nodes/REAConcatNode.h +1 -1
  50. package/ios/Nodes/REAConcatNode.m +3 -3
  51. package/ios/Nodes/REACondNode.h +1 -1
  52. package/ios/Nodes/REACondNode.m +3 -3
  53. package/ios/Nodes/READebugNode.h +1 -1
  54. package/ios/Nodes/READebugNode.m +3 -3
  55. package/ios/Nodes/REAEventNode.h +1 -2
  56. package/ios/Nodes/REAEventNode.m +3 -3
  57. package/ios/Nodes/REAFunctionNode.h +1 -1
  58. package/ios/Nodes/REAFunctionNode.m +3 -3
  59. package/ios/Nodes/REAJSCallNode.h +1 -1
  60. package/ios/Nodes/REAJSCallNode.m +3 -3
  61. package/ios/Nodes/REANode.m +2 -2
  62. package/ios/Nodes/REAOperatorNode.h +1 -1
  63. package/ios/Nodes/REAOperatorNode.m +2 -3
  64. package/ios/Nodes/REAParamNode.h +1 -1
  65. package/ios/Nodes/REAParamNode.m +4 -4
  66. package/ios/Nodes/REAPropsNode.h +1 -1
  67. package/ios/Nodes/REAPropsNode.m +4 -6
  68. package/ios/Nodes/REASetNode.h +1 -1
  69. package/ios/Nodes/REASetNode.m +4 -4
  70. package/ios/Nodes/REAStyleNode.h +1 -1
  71. package/ios/Nodes/REAStyleNode.m +2 -3
  72. package/ios/Nodes/REATransformNode.h +1 -1
  73. package/ios/Nodes/REATransformNode.m +2 -2
  74. package/ios/Nodes/REAValueNode.h +1 -3
  75. package/ios/Nodes/REAValueNode.m +1 -1
  76. package/ios/REAEventDispatcher.m +1 -1
  77. package/ios/REAModule.h +1 -1
  78. package/ios/REAModule.m +4 -5
  79. package/ios/REANodesManager.h +1 -2
  80. package/ios/REANodesManager.m +21 -23
  81. package/ios/Transitioning/RCTConvert+REATransition.h +1 -2
  82. package/ios/Transitioning/RCTConvert+REATransition.m +1 -1
  83. package/ios/Transitioning/REAAllTransitions.h +1 -1
  84. package/ios/Transitioning/REAAllTransitions.m +2 -3
  85. package/ios/Transitioning/REATransition.h +2 -3
  86. package/ios/Transitioning/REATransition.m +3 -4
  87. package/ios/Transitioning/REATransitionAnimation.m +1 -2
  88. package/ios/Transitioning/REATransitionManager.m +2 -4
  89. package/ios/Transitioning/REATransitionValues.m +2 -3
  90. package/ios/native/NativeMethods.h +1 -3
  91. package/ios/native/NativeMethods.mm +1 -1
  92. package/ios/native/NativeProxy.h +2 -2
  93. package/ios/native/NativeProxy.mm +20 -17
  94. package/ios/native/REAIOSErrorHandler.h +2 -4
  95. package/ios/native/REAIOSErrorHandler.mm +1 -1
  96. package/ios/native/REAIOSLogger.h +1 -3
  97. package/ios/native/REAIOSLogger.mm +1 -1
  98. package/ios/native/REAIOSScheduler.h +1 -3
  99. package/ios/native/REAIOSScheduler.mm +2 -2
  100. package/ios/native/REAInitializer.h +0 -7
  101. package/ios/native/REAInitializer.mm +13 -3
  102. package/ios/native/UIResponder+Reanimated.mm +3 -3
  103. package/ios/sensor/ReanimatedSensor.h +1 -1
  104. package/ios/sensor/ReanimatedSensor.m +3 -3
  105. package/ios/sensor/ReanimatedSensorContainer.h +1 -1
  106. package/ios/sensor/ReanimatedSensorContainer.m +2 -2
  107. package/lib/Animated.js +8 -30
  108. package/lib/ConfigHelper.js +0 -1
  109. package/lib/index.js +5 -30
  110. package/lib/reanimated2/Easing.js +9 -3
  111. package/lib/reanimated2/NativeReanimated/NativeReanimated.js +1 -1
  112. package/lib/reanimated2/animation/sequence.js +0 -3
  113. package/lib/reanimated2/component/FlatList.js +3 -3
  114. package/lib/reanimated2/component/Image.js +4 -0
  115. package/lib/reanimated2/component/ScrollView.js +4 -0
  116. package/lib/reanimated2/component/Text.js +4 -0
  117. package/lib/reanimated2/component/View.js +4 -0
  118. package/lib/reanimated2/core.js +0 -41
  119. package/lib/reanimated2/globals.d.ts +1 -2
  120. package/lib/reanimated2/hook/utils.js +0 -5
  121. package/lib/reanimated2/js-reanimated/global.js +25 -0
  122. package/lib/reanimated2/js-reanimated/index.js +0 -24
  123. package/lib/reanimated2/mock.js +6 -0
  124. package/lib/types/lib/Animated.d.ts +8 -0
  125. package/lib/types/lib/index.d.ts +4 -0
  126. package/lib/types/lib/reanimated2/commonTypes.d.ts +0 -1
  127. package/lib/types/lib/reanimated2/component/Image.d.ts +3 -0
  128. package/lib/types/lib/reanimated2/component/ScrollView.d.ts +3 -0
  129. package/lib/types/lib/reanimated2/component/Text.d.ts +3 -0
  130. package/lib/types/lib/reanimated2/component/View.d.ts +3 -0
  131. package/lib/types/lib/reanimated2/hook/useAnimatedSensor.d.ts +1 -3
  132. package/lib/types/lib/reanimated2/js-reanimated/global.d.ts +1 -0
  133. package/lib/types/lib/reanimated2/mock.d.ts +6 -0
  134. package/package.json +18 -14
  135. package/plugin.js +36 -33
  136. package/react-native-reanimated.d.ts +16 -7
  137. package/src/Animated.ts +13 -0
  138. package/src/ConfigHelper.ts +0 -1
  139. package/src/index.ts +7 -0
  140. package/src/reanimated2/Easing.ts +9 -3
  141. package/src/reanimated2/NativeReanimated/NativeReanimated.ts +1 -1
  142. package/src/reanimated2/animation/sequence.ts +0 -5
  143. package/src/reanimated2/commonTypes.ts +0 -1
  144. package/src/reanimated2/component/FlatList.tsx +3 -6
  145. package/src/reanimated2/component/Image.ts +6 -0
  146. package/src/reanimated2/component/ScrollView.ts +6 -0
  147. package/src/reanimated2/component/Text.ts +6 -0
  148. package/src/reanimated2/component/View.ts +6 -0
  149. package/src/reanimated2/core.ts +0 -52
  150. package/src/reanimated2/globals.d.ts +1 -2
  151. package/src/reanimated2/hook/useAnimatedSensor.ts +1 -3
  152. package/src/reanimated2/hook/utils.ts +0 -6
  153. package/src/reanimated2/js-reanimated/global.ts +33 -0
  154. package/src/reanimated2/js-reanimated/index.ts +0 -31
  155. package/src/reanimated2/mock.ts +6 -0
  156. package/android/react-native-reanimated-64-hermes.aar +0 -0
  157. package/android/react-native-reanimated-64-jsc.aar +0 -0
  158. package/lib/reanimated2/component/WrappedComponents.js +0 -9
  159. package/lib/reanimated2/component/index.js +0 -4
  160. package/lib/types/lib/reanimated2/component/WrappedComponents.d.ts +0 -8
  161. package/lib/types/lib/reanimated2/component/index.d.ts +0 -9
  162. package/src/Animated.js +0 -31
  163. package/src/reanimated2/component/WrappedComponents.ts +0 -11
  164. package/src/reanimated2/component/index.ts +0 -9
package/src/Animated.js DELETED
@@ -1,31 +0,0 @@
1
- import { LogBox } from 'react-native';
2
- import createAnimatedComponent from './createAnimatedComponent';
3
- import {
4
- addWhitelistedNativeProps,
5
- addWhitelistedUIProps,
6
- } from './ConfigHelper';
7
- import * as reanimated1 from './reanimated1';
8
- import ReanimatedComponents from './reanimated2/component';
9
-
10
- const Animated = {
11
- // components
12
- ...ReanimatedComponents,
13
- createAnimatedComponent,
14
- // configuration
15
- addWhitelistedNativeProps,
16
- addWhitelistedUIProps,
17
- // reanimated 1
18
- ...reanimated1,
19
- };
20
-
21
- export * from './reanimated2';
22
- export * from './reanimated1';
23
- export default Animated;
24
-
25
- // I think we can ignore this message as long as Gesture Handler doesn't
26
- // try to load the Reanimated module. I figured it should be here instead of
27
- // RNGH because this prevents the message from being displayed for all
28
- // versions of RNGH.
29
- LogBox.ignoreLogs([
30
- 'RCTBridge required dispatch_sync to load RNGestureHandlerModule. This may lead to deadlocks',
31
- ]);
@@ -1,11 +0,0 @@
1
- import { Image, ScrollView, Text, View } from 'react-native';
2
- import createAnimatedComponent from '../../createAnimatedComponent';
3
-
4
- const WrappedComponents = {
5
- View: createAnimatedComponent(View),
6
- Text: createAnimatedComponent(Text as any),
7
- Image: createAnimatedComponent(Image as any),
8
- ScrollView: createAnimatedComponent(ScrollView),
9
- };
10
-
11
- export default WrappedComponents;
@@ -1,9 +0,0 @@
1
- import ReanimatedFlatlist from './FlatList';
2
- import WrappedComponents from './WrappedComponents';
3
-
4
- const ReanimatedComponents = {
5
- ...WrappedComponents,
6
- FlatList: ReanimatedFlatlist,
7
- };
8
-
9
- export default ReanimatedComponents;