@react-native-ohos/react-native-reanimated 3.18.1-rc.6 → 4.0.0-rc.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 (275) hide show
  1. package/compatibility.json +161 -0
  2. package/harmony/reanimated/BuildProfile.ets +1 -1
  3. package/harmony/reanimated/build-profile.json5 +8 -1
  4. package/harmony/reanimated/oh-package.json5 +3 -2
  5. package/harmony/reanimated/src/main/cpp/CMakeLists.txt +31 -40
  6. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.cpp +11 -16
  7. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.h +3 -4
  8. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/InterpolatorRegistry.cpp +390 -0
  9. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/InterpolatorRegistry.h +16 -0
  10. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/definitions.h +30 -0
  11. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/filters/FilterOp.cpp +46 -0
  12. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/filters/FilterOp.h +23 -0
  13. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/Quaternion.cpp +53 -0
  14. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/Quaternion.h +21 -0
  15. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix.cpp +166 -0
  16. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix.h +71 -0
  17. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.cpp +368 -0
  18. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.h +53 -0
  19. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.cpp +594 -0
  20. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.h +67 -0
  21. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformOp.cpp +52 -0
  22. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/TransformOp.h +26 -0
  23. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/vectors.cpp +156 -0
  24. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/transforms/vectors.h +76 -0
  25. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSAngle.cpp +93 -0
  26. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSAngle.h +33 -0
  27. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSBoolean.cpp +48 -0
  28. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSBoolean.h +31 -0
  29. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSColor.cpp +135 -0
  30. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSColor.h +61 -0
  31. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.cpp +100 -0
  32. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.h +44 -0
  33. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSKeyword.cpp +81 -0
  34. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSKeyword.h +53 -0
  35. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSLength.cpp +122 -0
  36. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSLength.h +38 -0
  37. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSNumber.cpp +82 -0
  38. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSNumber.h +63 -0
  39. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSValue.h +118 -0
  40. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.cpp +174 -0
  41. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.h +111 -0
  42. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/complex/CSSBoxShadow.cpp +196 -0
  43. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/complex/CSSBoxShadow.h +66 -0
  44. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/complex/CSSDropShadow.cpp +134 -0
  45. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/common/values/complex/CSSDropShadow.h +44 -0
  46. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.cpp +174 -0
  47. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.h +49 -0
  48. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.cpp +45 -0
  49. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.h +26 -0
  50. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.cpp +90 -0
  51. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.h +43 -0
  52. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/common.cpp +17 -0
  53. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/configs/common.h +13 -0
  54. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/core/CSSAnimation.cpp +127 -0
  55. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/core/CSSAnimation.h +51 -0
  56. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/core/CSSTransition.cpp +145 -0
  57. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/core/CSSTransition.h +47 -0
  58. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/EasingFunctions.cpp +69 -0
  59. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/EasingFunctions.h +22 -0
  60. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/cubicBezier.cpp +66 -0
  61. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/cubicBezier.h +15 -0
  62. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/linear.cpp +28 -0
  63. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/linear.h +15 -0
  64. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/steps.cpp +13 -0
  65. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/easing/steps.h +12 -0
  66. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.cpp +157 -0
  67. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.h +189 -0
  68. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.cpp +76 -0
  69. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.h +66 -0
  70. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/configs.h +20 -0
  71. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/FilterOperation.cpp +136 -0
  72. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/FilterOperation.h +40 -0
  73. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/FilterOperationInterpolator.cpp +38 -0
  74. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/FilterOperationInterpolator.h +24 -0
  75. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/FilterStyleInterpolator.cpp +58 -0
  76. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/FilterStyleInterpolator.h +24 -0
  77. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/blur.h +14 -0
  78. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/brightness.h +14 -0
  79. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/contrast.h +14 -0
  80. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/dropShadow.h +17 -0
  81. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/grayscale.h +14 -0
  82. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/hueRotate.h +14 -0
  83. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/invert.h +14 -0
  84. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/opacity.h +14 -0
  85. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/saturate.h +14 -0
  86. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/filters/operations/sepia.h +14 -0
  87. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.cpp +95 -0
  88. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.h +36 -0
  89. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.cpp +41 -0
  90. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.h +32 -0
  91. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.cpp +99 -0
  92. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.h +37 -0
  93. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/operations/OperationsStyleInterpolator.cpp +308 -0
  94. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/operations/OperationsStyleInterpolator.h +100 -0
  95. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/operations/StyleOperation.cpp +19 -0
  96. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/operations/StyleOperation.h +94 -0
  97. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/operations/StyleOperationInterpolator.cpp +18 -0
  98. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/operations/StyleOperationInterpolator.h +43 -0
  99. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/styles/AnimationStyleInterpolator.h +26 -0
  100. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp +103 -0
  101. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.h +42 -0
  102. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.cpp +224 -0
  103. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.h +52 -0
  104. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.cpp +218 -0
  105. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.h +89 -0
  106. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.cpp +149 -0
  107. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.h +33 -0
  108. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.cpp +208 -0
  109. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.h +56 -0
  110. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/perspective.cpp +42 -0
  111. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/perspective.h +20 -0
  112. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/rotate.cpp +41 -0
  113. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/rotate.h +39 -0
  114. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/scale.cpp +28 -0
  115. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/scale.h +25 -0
  116. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/skew.cpp +14 -0
  117. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/skew.h +20 -0
  118. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/translate.cpp +39 -0
  119. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/transforms/operations/translate.h +25 -0
  120. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.cpp +47 -0
  121. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.h +43 -0
  122. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.cpp +70 -0
  123. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.h +40 -0
  124. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.cpp +146 -0
  125. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h +71 -0
  126. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.cpp +155 -0
  127. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.h +53 -0
  128. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.cpp +170 -0
  129. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.h +67 -0
  130. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/progress/KeyframeProgressProvider.h +12 -0
  131. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/progress/RawProgressProvider.cpp +41 -0
  132. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/progress/RawProgressProvider.h +31 -0
  133. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.cpp +193 -0
  134. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.h +77 -0
  135. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.cpp +340 -0
  136. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.h +80 -0
  137. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.cpp +45 -0
  138. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.h +29 -0
  139. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.cpp +167 -0
  140. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.h +51 -0
  141. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.cpp +61 -0
  142. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.h +33 -0
  143. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/svg/values/SVGBrush.cpp +80 -0
  144. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/svg/values/SVGBrush.h +39 -0
  145. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/svg/values/SVGLength.cpp +93 -0
  146. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/svg/values/SVGLength.h +36 -0
  147. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.cpp +110 -0
  148. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.h +33 -0
  149. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.cpp +75 -0
  150. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.h +45 -0
  151. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/algorithms.cpp +12 -0
  152. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/algorithms.h +10 -0
  153. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/interpolators.cpp +36 -0
  154. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/interpolators.h +23 -0
  155. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/props.cpp +149 -0
  156. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/CSS/utils/props.h +32 -0
  157. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.cpp +51 -39
  158. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.h +13 -15
  159. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedCommitShadowNode.h +0 -3
  160. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedMountHook.cpp +22 -53
  161. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ReanimatedMountHook.h +12 -8
  162. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ShadowTreeCloner.cpp +46 -37
  163. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/ShadowTreeCloner.h +3 -10
  164. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.cpp +72 -0
  165. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.h +25 -0
  166. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.cpp +160 -0
  167. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.h +71 -0
  168. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.cpp +161 -0
  169. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.h +65 -0
  170. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationType.h +4 -2
  171. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.cpp +62 -157
  172. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.h +38 -46
  173. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxyCommon.cpp +79 -0
  174. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxyCommon.h +81 -0
  175. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy_Experimental.cpp +864 -0
  176. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy_Experimental.h +214 -0
  177. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/{LayoutAnimationsProxy.cpp → LayoutAnimationsProxy_Legacy.cpp} +303 -276
  178. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy_Legacy.h +220 -0
  179. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.cpp +5 -65
  180. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h +52 -82
  181. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/PropsDiffer.cpp +456 -0
  182. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/PropsDiffer.h +102 -0
  183. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/SharedTransitions.cpp +544 -0
  184. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/PropValueProcessor.cpp +119 -0
  185. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/PropValueProcessor.h +39 -0
  186. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.cpp +957 -552
  187. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h +87 -111
  188. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.cpp +115 -163
  189. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.h +38 -54
  190. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.cpp +34 -36
  191. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.h +8 -0
  192. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.cpp +46 -58
  193. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.h +5 -9
  194. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/FeatureFlags.cpp +18 -0
  195. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/FeatureFlags.h +44 -0
  196. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/PlatformDepMethodsHolder.h +26 -57
  197. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/ReanimatedSystraceSection.h +12 -33
  198. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/ReanimatedVersion.cpp +46 -0
  199. package/harmony/reanimated/src/main/cpp/Common/cpp/{worklets → reanimated}/Tools/ReanimatedVersion.h +3 -4
  200. package/harmony/reanimated/src/main/cpp/ReanimatedModule.cpp +60 -85
  201. package/harmony/reanimated/src/main/cpp/ReanimatedNodesManager.cpp +1 -0
  202. package/harmony/reanimated/src/main/cpp/ReanimatedPackage.cpp +0 -3
  203. package/harmony/reanimated/src/main/cpp/ReanimatedSensor.cpp +266 -0
  204. package/harmony/reanimated/src/main/cpp/ReanimatedSensor.h +36 -0
  205. package/harmony/reanimated/src/main/cpp/ReanimatedSensorContainer.cpp +36 -0
  206. package/harmony/reanimated/src/main/cpp/ReanimatedSensorContainer.h +23 -0
  207. package/harmony/reanimated/src/main/cpp/ReanimatedUIScheduler.h +3 -3
  208. package/harmony/reanimated/src/main/ets/ReanimatedModule.ts +12 -1
  209. package/harmony/reanimated/src/main/ets/ReanimatedPackage.ts +1 -4
  210. package/harmony/reanimated.har +0 -0
  211. package/package.json +36 -18
  212. package/scripts/deploy.js +191 -0
  213. package/scripts/set-reanimated-version.js +37 -0
  214. package/scripts/update-version.js +119 -0
  215. package/scripts/validate-react-native-version.js +46 -0
  216. package/scripts/validate-worklets-build.js +17 -0
  217. package/scripts/validate-worklets-version.js +79 -0
  218. package/scripts/worklets-version.json +4 -0
  219. package/LICENSE +0 -21
  220. package/README.OpenSource +0 -11
  221. package/README.md +0 -10
  222. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/PropsRegistry.cpp +0 -68
  223. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Fabric/PropsRegistry.h +0 -68
  224. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.h +0 -147
  225. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/CollectionUtils.h +0 -14
  226. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/FeaturesConfig.cpp +0 -5
  227. package/harmony/reanimated/src/main/cpp/Common/cpp/reanimated/Tools/FeaturesConfig.h +0 -19
  228. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.cpp +0 -47
  229. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxy.h +0 -59
  230. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxySpec.cpp +0 -27
  231. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/NativeModules/WorkletsModuleProxySpec.h +0 -25
  232. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/EventHandlerRegistry.cpp +0 -94
  233. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/EventHandlerRegistry.h +0 -49
  234. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.cpp +0 -8
  235. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.h +0 -39
  236. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/SharedItems/Shareables.cpp +0 -326
  237. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/SharedItems/Shareables.h +0 -345
  238. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/AsyncQueue.cpp +0 -52
  239. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/AsyncQueue.h +0 -35
  240. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/Defs.h +0 -10
  241. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSISerializer.cpp +0 -342
  242. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSISerializer.h +0 -47
  243. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSLogger.cpp +0 -16
  244. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSLogger.h +0 -20
  245. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSScheduler.cpp +0 -20
  246. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/JSScheduler.h +0 -29
  247. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/PlatformLogger.h +0 -16
  248. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ReanimatedJSIUtils.cpp +0 -26
  249. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ReanimatedJSIUtils.h +0 -199
  250. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ReanimatedVersion.cpp +0 -95
  251. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/SingleInstanceChecker.h +0 -72
  252. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/ThreadSafeQueue.h +0 -49
  253. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/UIScheduler.cpp +0 -20
  254. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/UIScheduler.h +0 -22
  255. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/WorkletEventHandler.cpp +0 -29
  256. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/Tools/WorkletEventHandler.h +0 -41
  257. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/RNRuntimeWorkletDecorator.cpp +0 -16
  258. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/RNRuntimeWorkletDecorator.h +0 -19
  259. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedHermesRuntime.cpp +0 -112
  260. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedHermesRuntime.h +0 -127
  261. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedRuntime.cpp +0 -53
  262. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/ReanimatedRuntime.h +0 -22
  263. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/RuntimeInitialization.md +0 -191
  264. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntime.cpp +0 -155
  265. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntime.h +0 -90
  266. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeCollector.h +0 -36
  267. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeDecorator.cpp +0 -182
  268. package/harmony/reanimated/src/main/cpp/Common/cpp/worklets/WorkletRuntime/WorkletRuntimeDecorator.h +0 -22
  269. package/harmony/reanimated/src/main/cpp/ReanimatedLogger.cpp +0 -33
  270. package/harmony/reanimated/src/main/cpp/WorkletsModule.cpp +0 -61
  271. package/harmony/reanimated/src/main/cpp/WorkletsModule.h +0 -22
  272. package/harmony/reanimated/src/main/cpp/patches/AnimatedSensor/AnimatedSensorModule.cpp +0 -89
  273. package/harmony/reanimated/src/main/cpp/patches/Fabric/ShadowTreeCloner.cpp +0 -95
  274. package/harmony/reanimated/src/main/cpp/patches/NativeModules/ReanimatedModuleProxy.cpp +0 -964
  275. package/harmony/reanimated/src/main/ets/WorkletsModule.ts +0 -15
@@ -1,29 +1,39 @@
1
1
  #pragma once
2
2
 
3
3
  #include <reanimated/AnimatedSensor/AnimatedSensorModule.h>
4
+ #include <reanimated/CSS/core/CSSAnimation.h>
5
+ #include <reanimated/CSS/core/CSSTransition.h>
6
+ #include <reanimated/CSS/misc/ViewStylesRepository.h>
7
+ #include <reanimated/CSS/registries/CSSAnimationsRegistry.h>
8
+ #include <reanimated/CSS/registries/CSSKeyframesRegistry.h>
9
+ #include <reanimated/CSS/registries/CSSTransitionsRegistry.h>
10
+ #include <reanimated/CSS/registries/StaticPropsRegistry.h>
11
+ #include <reanimated/Fabric/ReanimatedCommitHook.h>
12
+ #include <reanimated/Fabric/ReanimatedCommitShadowNode.h>
13
+ #include <reanimated/Fabric/ReanimatedMountHook.h>
14
+ #include <reanimated/Fabric/ShadowTreeCloner.h>
15
+ #include <reanimated/Fabric/updates/AnimatedPropsRegistry.h>
16
+ #include <reanimated/Fabric/updates/UpdatesRegistryManager.h>
4
17
  #include <reanimated/LayoutAnimations/LayoutAnimationsManager.h>
18
+ #include <reanimated/LayoutAnimations/LayoutAnimationsProxyCommon.h>
19
+ #include <reanimated/NativeModules/PropValueProcessor.h>
5
20
  #include <reanimated/NativeModules/ReanimatedModuleProxySpec.h>
6
21
  #include <reanimated/Tools/PlatformDepMethodsHolder.h>
7
22
 
8
- #ifdef RCT_NEW_ARCH_ENABLED
9
- #include <reanimated/Fabric/PropsRegistry.h>
10
- #include <reanimated/Fabric/ReanimatedCommitHook.h>
11
- #include <reanimated/Fabric/ReanimatedMountHook.h>
12
- #include <reanimated/LayoutAnimations/LayoutAnimationsProxy.h>
13
- #endif // RCT_NEW_ARCH_ENABLED
14
-
15
23
  #include <worklets/NativeModules/WorkletsModuleProxy.h>
16
24
  #include <worklets/Registries/EventHandlerRegistry.h>
17
25
  #include <worklets/Tools/JSScheduler.h>
18
26
  #include <worklets/Tools/SingleInstanceChecker.h>
19
27
  #include <worklets/Tools/UIScheduler.h>
20
28
 
21
- #ifdef RCT_NEW_ARCH_ENABLED
29
+ #include <react/renderer/componentregistry/componentNameByReactViewName.h>
30
+ #include <react/renderer/core/ShadowNode.h>
22
31
  #include <react/renderer/uimanager/UIManager.h>
23
- #endif // RCT_NEW_ARCH_ENABLED
24
32
 
25
33
  #include <memory>
34
+ #include <set>
26
35
  #include <string>
36
+ #include <unordered_map>
27
37
  #include <unordered_set>
28
38
  #include <utility>
29
39
  #include <vector>
@@ -31,17 +41,18 @@
31
41
  namespace reanimated {
32
42
 
33
43
  using namespace facebook;
44
+ using namespace css;
45
+
46
+ using UpdatesBatch = std::vector<std::pair<std::shared_ptr<const ShadowNode>, folly::dynamic>>;
34
47
 
35
- class ReanimatedModuleProxy
36
- : public ReanimatedModuleProxySpec,
37
- public std::enable_shared_from_this<ReanimatedModuleProxy> {
48
+ class ReanimatedModuleProxy : public ReanimatedModuleProxySpec,
49
+ public std::enable_shared_from_this<ReanimatedModuleProxy> {
38
50
  public:
39
51
  ReanimatedModuleProxy(
40
52
  const std::shared_ptr<WorkletsModuleProxy> &workletsModuleProxy,
41
53
  jsi::Runtime &rnRuntime,
42
54
  const std::shared_ptr<CallInvoker> &jsCallInvoker,
43
55
  const PlatformDepMethodsHolder &platformDepMethodsHolder,
44
- const bool isBridgeless,
45
56
  const bool isReducedMotion);
46
57
 
47
58
  // We need this init method to initialize callbacks with
@@ -49,86 +60,71 @@ class ReanimatedModuleProxy
49
60
  // is fully constructed.
50
61
  void init(const PlatformDepMethodsHolder &platformDepMethodsHolder);
51
62
 
52
- void scheduleOnUI(jsi::Runtime &rt, const jsi::Value &worklet) override;
53
- jsi::Value executeOnUIRuntimeSync(jsi::Runtime &rt, const jsi::Value &worklet)
54
- override;
55
-
56
- jsi::Value createWorkletRuntime(
57
- jsi::Runtime &rt,
58
- const jsi::Value &name,
59
- const jsi::Value &initializer) override;
60
- jsi::Value scheduleOnRuntime(
61
- jsi::Runtime &rt,
62
- const jsi::Value &workletRuntimeValue,
63
- const jsi::Value &shareableWorkletValue) override;
64
-
65
- ~ReanimatedModuleProxy();
63
+ ~ReanimatedModuleProxy() override;
66
64
 
67
65
  jsi::Value registerEventHandler(
68
66
  jsi::Runtime &rt,
69
67
  const jsi::Value &worklet,
70
68
  const jsi::Value &eventName,
71
69
  const jsi::Value &emitterReactTag) override;
72
- void unregisterEventHandler(
73
- jsi::Runtime &rt,
74
- const jsi::Value &registrationId) override;
70
+ void unregisterEventHandler(jsi::Runtime &rt, const jsi::Value &registrationId) override;
75
71
 
76
72
  jsi::Value getViewProp(
77
73
  jsi::Runtime &rt,
78
- #ifdef RCT_NEW_ARCH_ENABLED
79
74
  const jsi::Value &shadowNodeWrapper,
80
- #else
81
- const jsi::Value &viewTag,
82
- #endif
83
75
  const jsi::Value &propName,
84
76
  const jsi::Value &callback) override;
85
77
 
86
- jsi::Value enableLayoutAnimations(jsi::Runtime &rt, const jsi::Value &config)
87
- override;
88
- jsi::Value configureProps(
89
- jsi::Runtime &rt,
90
- const jsi::Value &uiProps,
91
- const jsi::Value &nativeProps) override;
92
- jsi::Value configureLayoutAnimationBatch(
93
- jsi::Runtime &rt,
94
- const jsi::Value &layoutAnimationsBatch) override;
95
- void setShouldAnimateExiting(
96
- jsi::Runtime &rt,
97
- const jsi::Value &viewTag,
98
- const jsi::Value &shouldAnimate) override;
78
+ jsi::Value getStaticFeatureFlag(jsi::Runtime &rt, const jsi::Value &name) override;
79
+ jsi::Value setDynamicFeatureFlag(jsi::Runtime &rt, const jsi::Value &name, const jsi::Value &value) override;
80
+
81
+ jsi::Value configureLayoutAnimationBatch(jsi::Runtime &rt, const jsi::Value &layoutAnimationsBatch) override;
82
+ void setShouldAnimateExiting(jsi::Runtime &rt, const jsi::Value &viewTag, const jsi::Value &shouldAnimate) override;
99
83
 
100
84
  void onRender(double timestampMs);
101
85
 
102
- bool isAnyHandlerWaitingForEvent(
103
- const std::string &eventName,
104
- const int emitterReactTag);
86
+ bool isAnyHandlerWaitingForEvent(const std::string &eventName, const int emitterReactTag);
105
87
 
106
88
  void maybeRequestRender();
107
89
 
108
- bool handleEvent(
109
- const std::string &eventName,
110
- const int emitterReactTag,
111
- const jsi::Value &payload,
112
- double currentTime);
90
+ bool
91
+ handleEvent(const std::string &eventName, const int emitterReactTag, const jsi::Value &payload, double currentTime);
113
92
 
114
93
  inline std::shared_ptr<JSLogger> getJSLogger() const {
115
94
  return jsLogger_;
116
95
  }
117
96
 
118
- #ifdef RCT_NEW_ARCH_ENABLED
119
97
  bool handleRawEvent(const RawEvent &rawEvent, double currentTime);
120
98
 
121
- void updateProps(jsi::Runtime &rt, const jsi::Value &operations);
99
+ void maybeRunCSSLoop();
100
+ double getCssTimestamp();
101
+
102
+ void performOperations(const bool isTriggeredByEvent);
122
103
 
123
- void removeFromPropsRegistry(jsi::Runtime &rt, const jsi::Value &viewTags);
104
+ void setViewStyle(jsi::Runtime &rt, const jsi::Value &viewTag, const jsi::Value &viewStyle) override;
124
105
 
125
- void performOperations();
106
+ void markNodeAsRemovable(jsi::Runtime &rt, const jsi::Value &shadowNodeWrapper) override;
107
+ void unmarkNodeAsRemovable(jsi::Runtime &rt, const jsi::Value &viewTag) override;
126
108
 
127
- void markNodeAsRemovable(
109
+ void registerCSSKeyframes(
128
110
  jsi::Runtime &rt,
129
- const jsi::Value &shadowNodeWrapper) override;
130
- void unmarkNodeAsRemovable(jsi::Runtime &rt, const jsi::Value &viewTag)
111
+ const jsi::Value &animationName,
112
+ const jsi::Value &viewName,
113
+ const jsi::Value &keyframesConfig) override;
114
+ void unregisterCSSKeyframes(jsi::Runtime &rt, const jsi::Value &animationName, const jsi::Value &viewName) override;
115
+
116
+ void applyCSSAnimations(jsi::Runtime &rt, const jsi::Value &shadowNodeWrapper, const jsi::Value &animationUpdates)
117
+ override;
118
+ void unregisterCSSAnimations(const jsi::Value &viewTag) override;
119
+
120
+ void registerCSSTransition(jsi::Runtime &rt, const jsi::Value &shadowNodeWrapper, const jsi::Value &transitionConfig)
131
121
  override;
122
+ void updateCSSTransition(jsi::Runtime &rt, const jsi::Value &viewTag, const jsi::Value &configUpdates) override;
123
+ void unregisterCSSTransition(jsi::Runtime &rt, const jsi::Value &viewTag) override;
124
+
125
+ jsi::Value getSettledUpdates(jsi::Runtime &rt) override;
126
+
127
+ void cssLoopCallback(const double /*timestampMs*/);
132
128
 
133
129
  void dispatchCommand(
134
130
  jsi::Runtime &rt,
@@ -136,10 +132,7 @@ class ReanimatedModuleProxy
136
132
  const jsi::Value &commandNameValue,
137
133
  const jsi::Value &argsValue);
138
134
 
139
- jsi::String obtainProp(
140
- jsi::Runtime &rt,
141
- const jsi::Value &shadowNodeWrapper,
142
- const jsi::Value &propName);
135
+ jsi::String obtainProp(jsi::Runtime &rt, const jsi::Value &shadowNodeWrapper, const jsi::Value &propName);
143
136
 
144
137
  jsi::Value measure(jsi::Runtime &rt, const jsi::Value &shadowNodeValue);
145
138
 
@@ -150,12 +143,7 @@ class ReanimatedModuleProxy
150
143
  std::string obtainPropFromShadowNode(
151
144
  jsi::Runtime &rt,
152
145
  const std::string &propName,
153
- const ShadowNode::Shared &shadowNode);
154
-
155
- #ifdef IS_REANIMATED_EXAMPLE_APP
156
- std::function<std::string()> createRegistriesLeakCheck();
157
- #endif // IS_REANIMATED_EXAMPLE_APP
158
- #endif
146
+ const std::shared_ptr<const ShadowNode> &shadowNode);
159
147
 
160
148
  jsi::Value registerSensor(
161
149
  jsi::Runtime &rt,
@@ -172,74 +160,62 @@ class ReanimatedModuleProxy
172
160
  const jsi::Value &keyboardEventContainer,
173
161
  const jsi::Value &isStatusBarTranslucent,
174
162
  const jsi::Value &isNavigationBarTranslucent) override;
175
- void unsubscribeFromKeyboardEvents(
176
- jsi::Runtime &rt,
177
- const jsi::Value &listenerId) override;
163
+ void unsubscribeFromKeyboardEvents(jsi::Runtime &rt, const jsi::Value &listenerId) override;
178
164
 
179
165
  inline LayoutAnimationsManager &layoutAnimationsManager() {
180
166
  return *layoutAnimationsManager_;
181
167
  }
182
168
 
183
- [[nodiscard]] inline jsi::Runtime &getUIRuntime() const {
184
- return uiWorkletRuntime_->getJSIRuntime();
185
- }
186
-
187
- [[nodiscard]] inline bool isBridgeless() const {
188
- return isBridgeless_;
189
- }
190
-
191
169
  [[nodiscard]] inline bool isReducedMotion() const {
192
170
  return isReducedMotion_;
193
171
  }
194
172
 
195
- [[nodiscard]] inline std::shared_ptr<WorkletsModuleProxy>
196
- getWorkletsModuleProxy() const {
173
+ [[nodiscard]] inline std::shared_ptr<WorkletsModuleProxy> getWorkletsModuleProxy() const {
197
174
  return workletsModuleProxy_;
198
175
  }
199
176
 
200
- private:
201
- void requestAnimationFrame(jsi::Runtime &rt, const jsi::Value &callback);
177
+ void requestFlushRegistry();
178
+ std::function<std::string()> createRegistriesLeakCheck();
202
179
 
203
- #ifdef RCT_NEW_ARCH_ENABLED
204
- jsi::Value filterNonAnimatableProps(
205
- jsi::Runtime &rt,
206
- const jsi::Value &props);
207
- #endif // RCT_NEW_ARCH_ENABLED
180
+ private:
181
+ void commitUpdates(jsi::Runtime &rt, const UpdatesBatch &updatesBatch);
208
182
 
209
- const bool isBridgeless_;
210
183
  const bool isReducedMotion_;
184
+ bool shouldFlushRegistry_ = false;
211
185
  std::shared_ptr<WorkletsModuleProxy> workletsModuleProxy_;
212
- const std::string valueUnpackerCode_;
213
- std::shared_ptr<WorkletRuntime> uiWorkletRuntime_;
214
186
 
215
187
  std::unique_ptr<EventHandlerRegistry> eventHandlerRegistry_;
216
188
  const RequestRenderFunction requestRender_;
217
- std::vector<std::shared_ptr<jsi::Value>> frameCallbacks_;
218
189
  volatile bool renderRequested_{false};
219
190
  std::function<void(const double)> onRenderCallback_;
220
191
  AnimatedSensorModule animatedSensorModule_;
221
192
  const std::shared_ptr<JSLogger> jsLogger_;
222
193
  std::shared_ptr<LayoutAnimationsManager> layoutAnimationsManager_;
194
+ GetAnimationTimestampFunction getAnimationTimestamp_;
195
+ #ifdef __APPLE__
196
+ ForceScreenSnapshotFunction forceScreenSnapshot_;
197
+ #endif
198
+ bool cssLoopRunning_{false};
199
+ bool shouldUpdateCssAnimations_{true};
200
+ double currentCssTimestamp_{0};
223
201
 
224
- #ifdef RCT_NEW_ARCH_ENABLED
225
- std::unordered_set<std::string>
226
- animatablePropNames_; // filled by configureProps
227
- std::shared_ptr<UIManager> uiManager_;
228
- std::shared_ptr<LayoutAnimationsProxy> layoutAnimationsProxy_;
202
+ const std::shared_ptr<AnimatedPropsRegistry> animatedPropsRegistry_;
203
+ const std::shared_ptr<StaticPropsRegistry> staticPropsRegistry_;
204
+ const std::shared_ptr<UpdatesRegistryManager> updatesRegistryManager_;
205
+ const std::shared_ptr<ViewStylesRepository> viewStylesRepository_;
206
+ const std::shared_ptr<CSSKeyframesRegistry> cssAnimationKeyframesRegistry_;
207
+ const std::shared_ptr<CSSAnimationsRegistry> cssAnimationsRegistry_;
208
+ const std::shared_ptr<CSSTransitionsRegistry> cssTransitionsRegistry_;
229
209
 
230
- std::vector<std::pair<ShadowNode::Shared, std::unique_ptr<jsi::Value>>>
231
- operationsInBatch_; // TODO: refactor std::pair to custom struct
210
+ const SynchronouslyUpdateUIPropsFunction synchronouslyUpdateUIPropsFunction_;
211
+ const PreserveMountedTagsFunction filterUnmountedTagsFunction_;
232
212
 
233
- std::shared_ptr<PropsRegistry> propsRegistry_;
213
+ std::shared_ptr<UIManager> uiManager_;
214
+ std::shared_ptr<LayoutAnimationsProxyCommon> layoutAnimationsProxy_;
234
215
  std::shared_ptr<ReanimatedCommitHook> commitHook_;
235
216
  std::shared_ptr<ReanimatedMountHook> mountHook_;
236
-
237
- std::vector<Tag> tagsToRemove_; // from `propsRegistry_`
238
- #else
239
- const ObtainPropFunction obtainPropFunction_;
240
- const ConfigurePropsFunction configurePropsPlatformFunction_;
241
- const UpdatePropsFunction updatePropsFunction_;
242
- #endif
217
+ std::set<SurfaceId> layoutAnimationFlushRequests_;
218
+ bool layoutAnimationRenderRequested_;
243
219
 
244
220
  const KeyboardEventSubscribeFunction subscribeForKeyboardEventsFunction_;
245
221
  const KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEventsFunction_;
@@ -1,231 +1,183 @@
1
1
  #include <reanimated/NativeModules/ReanimatedModuleProxySpec.h>
2
2
 
3
+ #include <memory>
3
4
  #include <utility>
4
5
 
5
- #define REANIMATED_SPEC_PREFIX(FN_NAME) \
6
- __hostFunction_ReanimatedModuleProxySpec_##FN_NAME
6
+ #define REANIMATED_SPEC_PREFIX(FN_NAME) __hostFunction_ReanimatedModuleProxySpec_##FN_NAME
7
7
 
8
8
  namespace reanimated {
9
9
 
10
- // scheduler
10
+ static jsi::Value REANIMATED_SPEC_PREFIX(
11
+ registerEventHandler)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
12
+ return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
13
+ ->registerEventHandler(rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
14
+ }
11
15
 
12
- static jsi::Value REANIMATED_SPEC_PREFIX(scheduleOnUI)(
13
- jsi::Runtime &rt,
14
- TurboModule &turboModule,
15
- const jsi::Value *args,
16
- size_t) {
17
- static_cast<ReanimatedModuleProxySpec *>(&turboModule)
18
- ->scheduleOnUI(rt, std::move(args[0]));
16
+ static jsi::Value REANIMATED_SPEC_PREFIX(
17
+ unregisterEventHandler)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
18
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->unregisterEventHandler(rt, std::move(args[0]));
19
19
  return jsi::Value::undefined();
20
20
  }
21
21
 
22
- static jsi::Value REANIMATED_SPEC_PREFIX(executeOnUIRuntimeSync)(
23
- jsi::Runtime &rt,
24
- TurboModule &turboModule,
25
- const jsi::Value *args,
26
- size_t) {
27
- return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
28
- ->executeOnUIRuntimeSync(rt, std::move(args[0]));
22
+ static jsi::Value REANIMATED_SPEC_PREFIX(
23
+ getViewProp)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
24
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)
25
+ ->getViewProp(rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
26
+ return jsi::Value::undefined();
29
27
  }
30
28
 
31
- static jsi::Value REANIMATED_SPEC_PREFIX(createWorkletRuntime)(
32
- jsi::Runtime &rt,
33
- TurboModule &turboModule,
34
- const jsi::Value *args,
35
- size_t) {
29
+ static jsi::Value REANIMATED_SPEC_PREFIX(
30
+ registerSensor)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
36
31
  return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
37
- ->createWorkletRuntime(rt, std::move(args[0]), std::move(args[1]));
32
+ ->registerSensor(rt, std::move(args[0]), std::move(args[1]), std::move(args[2]), std::move(args[3]));
38
33
  }
39
34
 
40
- static jsi::Value REANIMATED_SPEC_PREFIX(scheduleOnRuntime)(
41
- jsi::Runtime &rt,
42
- TurboModule &turboModule,
43
- const jsi::Value *args,
44
- size_t) {
45
- return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
46
- ->scheduleOnRuntime(rt, std::move(args[0]), std::move(args[1]));
35
+ static jsi::Value REANIMATED_SPEC_PREFIX(
36
+ unregisterSensor)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
37
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->unregisterSensor(rt, std::move(args[0]));
38
+ return jsi::Value::undefined();
47
39
  }
48
40
 
49
- static jsi::Value REANIMATED_SPEC_PREFIX(registerEventHandler)(
50
- jsi::Runtime &rt,
51
- TurboModule &turboModule,
52
- const jsi::Value *args,
53
- size_t) {
54
- return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
55
- ->registerEventHandler(
56
- rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
41
+ static jsi::Value REANIMATED_SPEC_PREFIX(
42
+ getStaticFeatureFlag)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
43
+ return static_cast<ReanimatedModuleProxySpec *>(&turboModule)->getStaticFeatureFlag(rt, std::move(args[0]));
57
44
  }
58
45
 
59
- static jsi::Value REANIMATED_SPEC_PREFIX(unregisterEventHandler)(
60
- jsi::Runtime &rt,
61
- TurboModule &turboModule,
62
- const jsi::Value *args,
63
- size_t) {
46
+ static jsi::Value REANIMATED_SPEC_PREFIX(
47
+ setDynamicFeatureFlag)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
64
48
  static_cast<ReanimatedModuleProxySpec *>(&turboModule)
65
- ->unregisterEventHandler(rt, std::move(args[0]));
49
+ ->setDynamicFeatureFlag(rt, std::move(args[0]), std::move(args[1]));
66
50
  return jsi::Value::undefined();
67
51
  }
68
52
 
69
- static jsi::Value REANIMATED_SPEC_PREFIX(getViewProp)(
70
- jsi::Runtime &rt,
71
- TurboModule &turboModule,
72
- const jsi::Value *args,
73
- size_t) {
74
- static_cast<ReanimatedModuleProxySpec *>(&turboModule)
75
- ->getViewProp(
76
- rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
53
+ static jsi::Value REANIMATED_SPEC_PREFIX(
54
+ subscribeForKeyboardEvents)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
55
+ return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
56
+ ->subscribeForKeyboardEvents(rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
57
+ }
58
+
59
+ static jsi::Value REANIMATED_SPEC_PREFIX(
60
+ unsubscribeFromKeyboardEvents)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
61
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->unsubscribeFromKeyboardEvents(rt, std::move(args[0]));
77
62
  return jsi::Value::undefined();
78
63
  }
79
64
 
80
- static jsi::Value REANIMATED_SPEC_PREFIX(enableLayoutAnimations)(
81
- jsi::Runtime &rt,
82
- TurboModule &turboModule,
83
- const jsi::Value *args,
84
- size_t) {
65
+ static jsi::Value REANIMATED_SPEC_PREFIX(
66
+ configureLayoutAnimationBatch)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
67
+ return static_cast<ReanimatedModuleProxySpec *>(&turboModule)->configureLayoutAnimationBatch(rt, std::move(args[0]));
68
+ }
69
+
70
+ static jsi::Value REANIMATED_SPEC_PREFIX(
71
+ setShouldAnimateExiting)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
85
72
  static_cast<ReanimatedModuleProxySpec *>(&turboModule)
86
- ->enableLayoutAnimations(rt, std::move(args[0]));
73
+ ->setShouldAnimateExiting(rt, std::move(args[0]), std::move(args[1]));
87
74
  return jsi::Value::undefined();
88
75
  }
89
76
 
90
- static jsi::Value REANIMATED_SPEC_PREFIX(registerSensor)(
91
- jsi::Runtime &rt,
92
- TurboModule &turboModule,
93
- const jsi::Value *args,
94
- size_t) {
95
- return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
96
- ->registerSensor(
97
- rt,
98
- std::move(args[0]),
99
- std::move(args[1]),
100
- std::move(args[2]),
101
- std::move(args[3]));
102
- }
103
-
104
- static jsi::Value REANIMATED_SPEC_PREFIX(unregisterSensor)(
105
- jsi::Runtime &rt,
106
- TurboModule &turboModule,
107
- const jsi::Value *args,
108
- size_t) {
109
- static_cast<ReanimatedModuleProxySpec *>(&turboModule)
110
- ->unregisterSensor(rt, std::move(args[0]));
77
+ static jsi::Value REANIMATED_SPEC_PREFIX(
78
+ setViewStyle)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
79
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->setViewStyle(rt, std::move(args[0]), std::move(args[1]));
111
80
  return jsi::Value::undefined();
112
81
  }
113
82
 
114
- static jsi::Value REANIMATED_SPEC_PREFIX(configureProps)(
115
- jsi::Runtime &rt,
116
- TurboModule &turboModule,
117
- const jsi::Value *args,
118
- size_t) {
119
- static_cast<ReanimatedModuleProxySpec *>(&turboModule)
120
- ->configureProps(rt, std::move(args[0]), std::move(args[1]));
83
+ static jsi::Value REANIMATED_SPEC_PREFIX(
84
+ markNodeAsRemovable)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
85
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->markNodeAsRemovable(rt, std::move(args[0]));
121
86
  return jsi::Value::undefined();
122
87
  }
123
88
 
124
- static jsi::Value REANIMATED_SPEC_PREFIX(subscribeForKeyboardEvents)(
125
- jsi::Runtime &rt,
126
- TurboModule &turboModule,
127
- const jsi::Value *args,
128
- size_t) {
129
- return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
130
- ->subscribeForKeyboardEvents(
131
- rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
89
+ static jsi::Value REANIMATED_SPEC_PREFIX(
90
+ unmarkNodeAsRemovable)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
91
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->unmarkNodeAsRemovable(rt, std::move(args[0]));
92
+ return jsi::Value::undefined();
132
93
  }
133
94
 
134
- static jsi::Value REANIMATED_SPEC_PREFIX(unsubscribeFromKeyboardEvents)(
135
- jsi::Runtime &rt,
136
- TurboModule &turboModule,
137
- const jsi::Value *args,
138
- size_t) {
95
+ static jsi::Value REANIMATED_SPEC_PREFIX(
96
+ registerCSSKeyframes)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
139
97
  static_cast<ReanimatedModuleProxySpec *>(&turboModule)
140
- ->unsubscribeFromKeyboardEvents(rt, std::move(args[0]));
98
+ ->registerCSSKeyframes(rt, std::move(args[0]), std::move(args[1]), std::move(args[2]));
141
99
  return jsi::Value::undefined();
142
100
  }
143
101
 
144
- static jsi::Value REANIMATED_SPEC_PREFIX(configureLayoutAnimationBatch)(
145
- jsi::Runtime &rt,
146
- TurboModule &turboModule,
147
- const jsi::Value *args,
148
- size_t) {
149
- return static_cast<ReanimatedModuleProxySpec *>(&turboModule)
150
- ->configureLayoutAnimationBatch(rt, std::move(args[0]));
102
+ static jsi::Value REANIMATED_SPEC_PREFIX(
103
+ unregisterCSSKeyframes)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
104
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)
105
+ ->unregisterCSSKeyframes(rt, std::move(args[0]), std::move(args[1]));
106
+ return jsi::Value::undefined();
151
107
  }
152
108
 
153
- static jsi::Value REANIMATED_SPEC_PREFIX(setShouldAnimateExiting)(
154
- jsi::Runtime &rt,
155
- TurboModule &turboModule,
156
- const jsi::Value *args,
157
- size_t) {
109
+ static jsi::Value REANIMATED_SPEC_PREFIX(
110
+ applyCSSAnimations)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
158
111
  static_cast<ReanimatedModuleProxySpec *>(&turboModule)
159
- ->setShouldAnimateExiting(rt, std::move(args[0]), std::move(args[1]));
112
+ ->applyCSSAnimations(rt, std::move(args[0]), std::move(args[1]));
160
113
  return jsi::Value::undefined();
161
114
  }
162
115
 
163
- #ifdef RCT_NEW_ARCH_ENABLED
116
+ static jsi::Value REANIMATED_SPEC_PREFIX(
117
+ unregisterCSSAnimations)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
118
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->unregisterCSSAnimations(std::move(args[0]));
119
+ return jsi::Value::undefined();
120
+ }
164
121
 
165
- static jsi::Value REANIMATED_SPEC_PREFIX(markNodeAsRemovable)(
166
- jsi::Runtime &rt,
167
- TurboModule &turboModule,
168
- const jsi::Value *args,
169
- size_t) {
122
+ static jsi::Value REANIMATED_SPEC_PREFIX(
123
+ registerCSSTransition)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
170
124
  static_cast<ReanimatedModuleProxySpec *>(&turboModule)
171
- ->markNodeAsRemovable(rt, std::move(args[0]));
125
+ ->registerCSSTransition(rt, std::move(args[0]), std::move(args[1]));
172
126
  return jsi::Value::undefined();
173
127
  }
174
128
 
175
- static jsi::Value REANIMATED_SPEC_PREFIX(unmarkNodeAsRemovable)(
176
- jsi::Runtime &rt,
177
- TurboModule &turboModule,
178
- const jsi::Value *args,
179
- size_t) {
129
+ static jsi::Value REANIMATED_SPEC_PREFIX(
130
+ updateCSSTransition)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
180
131
  static_cast<ReanimatedModuleProxySpec *>(&turboModule)
181
- ->unmarkNodeAsRemovable(rt, std::move(args[0]));
132
+ ->updateCSSTransition(rt, std::move(args[0]), std::move(args[1]));
133
+ return jsi::Value::undefined();
134
+ }
135
+
136
+ static jsi::Value REANIMATED_SPEC_PREFIX(
137
+ unregisterCSSTransition)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
138
+ static_cast<ReanimatedModuleProxySpec *>(&turboModule)->unregisterCSSTransition(rt, std::move(args[0]));
182
139
  return jsi::Value::undefined();
183
140
  }
184
141
 
185
- #endif // RCT_NEW_ARCH_ENABLED
142
+ static jsi::Value REANIMATED_SPEC_PREFIX(
143
+ getSettledUpdates)(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value *args, size_t) {
144
+ return static_cast<ReanimatedModuleProxySpec *>(&turboModule)->getSettledUpdates(rt);
145
+ }
186
146
 
187
- ReanimatedModuleProxySpec::ReanimatedModuleProxySpec(
188
- const std::shared_ptr<CallInvoker> &jsInvoker)
147
+ ReanimatedModuleProxySpec::ReanimatedModuleProxySpec(const std::shared_ptr<CallInvoker> &jsInvoker)
189
148
  : TurboModule("NativeReanimated", jsInvoker) {
190
- methodMap_["scheduleOnUI"] =
191
- MethodMetadata{1, REANIMATED_SPEC_PREFIX(scheduleOnUI)};
192
- methodMap_["executeOnUIRuntimeSync"] =
193
- MethodMetadata{1, REANIMATED_SPEC_PREFIX(executeOnUIRuntimeSync)};
194
- methodMap_["createWorkletRuntime"] =
195
- MethodMetadata{2, REANIMATED_SPEC_PREFIX(createWorkletRuntime)};
196
- methodMap_["scheduleOnRuntime"] =
197
- MethodMetadata{2, REANIMATED_SPEC_PREFIX(scheduleOnRuntime)};
198
-
199
- methodMap_["registerEventHandler"] =
200
- MethodMetadata{3, REANIMATED_SPEC_PREFIX(registerEventHandler)};
201
- methodMap_["unregisterEventHandler"] =
202
- MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterEventHandler)};
203
-
204
- methodMap_["getViewProp"] =
205
- MethodMetadata{3, REANIMATED_SPEC_PREFIX(getViewProp)};
206
- methodMap_["enableLayoutAnimations"] =
207
- MethodMetadata{2, REANIMATED_SPEC_PREFIX(enableLayoutAnimations)};
208
- methodMap_["registerSensor"] =
209
- MethodMetadata{4, REANIMATED_SPEC_PREFIX(registerSensor)};
210
- methodMap_["unregisterSensor"] =
211
- MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterSensor)};
212
- methodMap_["configureProps"] =
213
- MethodMetadata{2, REANIMATED_SPEC_PREFIX(configureProps)};
214
- methodMap_["subscribeForKeyboardEvents"] =
215
- MethodMetadata{2, REANIMATED_SPEC_PREFIX(subscribeForKeyboardEvents)};
149
+ methodMap_["registerEventHandler"] = MethodMetadata{3, REANIMATED_SPEC_PREFIX(registerEventHandler)};
150
+ methodMap_["unregisterEventHandler"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterEventHandler)};
151
+
152
+ methodMap_["getViewProp"] = MethodMetadata{3, REANIMATED_SPEC_PREFIX(getViewProp)};
153
+ methodMap_["registerSensor"] = MethodMetadata{4, REANIMATED_SPEC_PREFIX(registerSensor)};
154
+ methodMap_["getStaticFeatureFlag"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(getStaticFeatureFlag)};
155
+ methodMap_["unregisterSensor"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterSensor)};
156
+ methodMap_["setDynamicFeatureFlag"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(setDynamicFeatureFlag)};
157
+ methodMap_["subscribeForKeyboardEvents"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(subscribeForKeyboardEvents)};
216
158
  methodMap_["unsubscribeFromKeyboardEvents"] =
217
159
  MethodMetadata{1, REANIMATED_SPEC_PREFIX(unsubscribeFromKeyboardEvents)};
218
160
 
219
161
  methodMap_["configureLayoutAnimationBatch"] =
220
162
  MethodMetadata{1, REANIMATED_SPEC_PREFIX(configureLayoutAnimationBatch)};
221
- methodMap_["setShouldAnimateExitingForTag"] =
222
- MethodMetadata{2, REANIMATED_SPEC_PREFIX(setShouldAnimateExiting)};
163
+ methodMap_["setShouldAnimateExitingForTag"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(setShouldAnimateExiting)};
164
+
165
+ methodMap_["setViewStyle"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(setViewStyle)};
166
+
167
+ methodMap_["markNodeAsRemovable"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(markNodeAsRemovable)};
168
+ methodMap_["unmarkNodeAsRemovable"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(unmarkNodeAsRemovable)};
223
169
 
224
- #ifdef RCT_NEW_ARCH_ENABLED
225
- methodMap_["markNodeAsRemovable"] =
226
- MethodMetadata{1, REANIMATED_SPEC_PREFIX(markNodeAsRemovable)};
227
- methodMap_["unmarkNodeAsRemovable"] =
228
- MethodMetadata{1, REANIMATED_SPEC_PREFIX(unmarkNodeAsRemovable)};
229
- #endif // RCT_NEW_ARCH_ENABLED
170
+ methodMap_["registerCSSKeyframes"] = MethodMetadata{3, REANIMATED_SPEC_PREFIX(registerCSSKeyframes)};
171
+ methodMap_["unregisterCSSKeyframes"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(unregisterCSSKeyframes)};
172
+
173
+ methodMap_["applyCSSAnimations"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(applyCSSAnimations)};
174
+ methodMap_["unregisterCSSAnimations"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterCSSAnimations)};
175
+
176
+ methodMap_["registerCSSTransition"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(registerCSSTransition)};
177
+ methodMap_["updateCSSTransition"] = MethodMetadata{2, REANIMATED_SPEC_PREFIX(updateCSSTransition)};
178
+ methodMap_["unregisterCSSTransition"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterCSSTransition)};
179
+
180
+ methodMap_["getSettledUpdates"] = MethodMetadata{1, REANIMATED_SPEC_PREFIX(getSettledUpdates)};
230
181
  }
182
+
231
183
  } // namespace reanimated