react-native-reanimated 2.6.0 → 2.7.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 (111) hide show
  1. package/Common/cpp/SharedItems/ShareableValue.cpp +2 -2
  2. package/Common/cpp/Tools/RuntimeDecorator.cpp +0 -14
  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/react-native-reanimated-64-hermes.aar +0 -0
  16. package/android/react-native-reanimated-64-jsc.aar +0 -0
  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/src/main/java/com/swmansion/reanimated/NativeProxy.java +11 -8
  26. package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java +13 -6
  27. package/ios/LayoutReanimation/REAAnimationsManager.h +1 -1
  28. package/ios/LayoutReanimation/REAAnimationsManager.m +2 -2
  29. package/ios/LayoutReanimation/REASnapshot.m +1 -1
  30. package/ios/LayoutReanimation/REAUIManager.h +1 -1
  31. package/ios/LayoutReanimation/REAUIManager.mm +4 -5
  32. package/ios/Nodes/REAAlwaysNode.h +1 -1
  33. package/ios/Nodes/REAAlwaysNode.m +5 -5
  34. package/ios/Nodes/REABezierNode.h +1 -1
  35. package/ios/Nodes/REABezierNode.m +4 -5
  36. package/ios/Nodes/REABlockNode.h +1 -1
  37. package/ios/Nodes/REABlockNode.m +2 -2
  38. package/ios/Nodes/REACallFuncNode.h +1 -1
  39. package/ios/Nodes/REACallFuncNode.m +5 -5
  40. package/ios/Nodes/REAClockNodes.h +1 -1
  41. package/ios/Nodes/REAClockNodes.m +4 -4
  42. package/ios/Nodes/REAConcatNode.h +1 -1
  43. package/ios/Nodes/REAConcatNode.m +3 -3
  44. package/ios/Nodes/REACondNode.h +1 -1
  45. package/ios/Nodes/REACondNode.m +3 -3
  46. package/ios/Nodes/READebugNode.h +1 -1
  47. package/ios/Nodes/READebugNode.m +3 -3
  48. package/ios/Nodes/REAEventNode.h +1 -2
  49. package/ios/Nodes/REAEventNode.m +3 -3
  50. package/ios/Nodes/REAFunctionNode.h +1 -1
  51. package/ios/Nodes/REAFunctionNode.m +3 -3
  52. package/ios/Nodes/REAJSCallNode.h +1 -1
  53. package/ios/Nodes/REAJSCallNode.m +3 -3
  54. package/ios/Nodes/REANode.m +2 -2
  55. package/ios/Nodes/REAOperatorNode.h +1 -1
  56. package/ios/Nodes/REAOperatorNode.m +2 -3
  57. package/ios/Nodes/REAParamNode.h +1 -1
  58. package/ios/Nodes/REAParamNode.m +4 -4
  59. package/ios/Nodes/REAPropsNode.h +1 -1
  60. package/ios/Nodes/REAPropsNode.m +4 -6
  61. package/ios/Nodes/REASetNode.h +1 -1
  62. package/ios/Nodes/REASetNode.m +4 -4
  63. package/ios/Nodes/REAStyleNode.h +1 -1
  64. package/ios/Nodes/REAStyleNode.m +2 -3
  65. package/ios/Nodes/REATransformNode.h +1 -1
  66. package/ios/Nodes/REATransformNode.m +2 -2
  67. package/ios/Nodes/REAValueNode.h +1 -3
  68. package/ios/Nodes/REAValueNode.m +1 -1
  69. package/ios/REAEventDispatcher.m +1 -1
  70. package/ios/REAModule.h +1 -1
  71. package/ios/REAModule.m +4 -5
  72. package/ios/REANodesManager.h +1 -2
  73. package/ios/REANodesManager.m +21 -23
  74. package/ios/Transitioning/RCTConvert+REATransition.h +1 -2
  75. package/ios/Transitioning/RCTConvert+REATransition.m +1 -1
  76. package/ios/Transitioning/REAAllTransitions.h +1 -1
  77. package/ios/Transitioning/REAAllTransitions.m +2 -3
  78. package/ios/Transitioning/REATransition.h +2 -3
  79. package/ios/Transitioning/REATransition.m +3 -4
  80. package/ios/Transitioning/REATransitionAnimation.m +1 -2
  81. package/ios/Transitioning/REATransitionManager.m +2 -4
  82. package/ios/Transitioning/REATransitionValues.m +2 -3
  83. package/ios/native/NativeMethods.h +1 -3
  84. package/ios/native/NativeMethods.mm +1 -1
  85. package/ios/native/NativeProxy.h +2 -2
  86. package/ios/native/NativeProxy.mm +14 -15
  87. package/ios/native/REAIOSErrorHandler.h +2 -4
  88. package/ios/native/REAIOSErrorHandler.mm +1 -1
  89. package/ios/native/REAIOSLogger.h +1 -3
  90. package/ios/native/REAIOSLogger.mm +1 -1
  91. package/ios/native/REAIOSScheduler.h +1 -3
  92. package/ios/native/REAIOSScheduler.mm +2 -2
  93. package/ios/native/REAInitializer.h +0 -7
  94. package/ios/native/REAInitializer.mm +2 -2
  95. package/ios/native/UIResponder+Reanimated.mm +3 -3
  96. package/ios/sensor/ReanimatedSensor.h +1 -1
  97. package/ios/sensor/ReanimatedSensor.m +1 -1
  98. package/ios/sensor/ReanimatedSensorContainer.h +1 -1
  99. package/ios/sensor/ReanimatedSensorContainer.m +2 -2
  100. package/lib/ConfigHelper.js +0 -1
  101. package/lib/reanimated2/Easing.js +9 -3
  102. package/lib/reanimated2/core.js +0 -36
  103. package/lib/reanimated2/globals.d.ts +1 -2
  104. package/lib/types/lib/reanimated2/commonTypes.d.ts +0 -1
  105. package/package.json +4 -6
  106. package/plugin.js +0 -12
  107. package/src/ConfigHelper.ts +0 -1
  108. package/src/reanimated2/Easing.ts +9 -3
  109. package/src/reanimated2/commonTypes.ts +0 -1
  110. package/src/reanimated2/core.ts +0 -47
  111. package/src/reanimated2/globals.d.ts +1 -2
@@ -64,7 +64,7 @@ void ShareableValue::adapt(
64
64
  jsi::Object hiddenProperty = hiddenValue.asObject(rt);
65
65
  if (hiddenProperty.isHostObject<FrozenObject>(rt)) {
66
66
  type = ValueType::FrozenObjectType;
67
- if (object.hasProperty(rt, "__worklet") && object.isFunction(rt)) {
67
+ if (object.hasProperty(rt, "__workletHash") && object.isFunction(rt)) {
68
68
  type = ValueType::WorkletFunctionType;
69
69
  }
70
70
  valueContainer = std::make_unique<FrozenObjectWrapper>(
@@ -99,7 +99,7 @@ void ShareableValue::adapt(
99
99
  } else if (value.isObject()) {
100
100
  auto object = value.asObject(rt);
101
101
  if (object.isFunction(rt)) {
102
- if (object.getProperty(rt, "__worklet").isUndefined()) {
102
+ if (object.getProperty(rt, "__workletHash").isUndefined()) {
103
103
  // not a worklet, we treat this as a host function
104
104
  type = ValueType::HostFunctionType;
105
105
  containsHostFunction = true;
@@ -31,20 +31,6 @@ void RuntimeDecorator::decorateRuntime(
31
31
  rt, "_LABEL", jsi::String::createFromAscii(rt, label));
32
32
 
33
33
  jsi::Object dummyGlobal(rt);
34
- auto dummyFunction = [](jsi::Runtime &rt,
35
- const jsi::Value &thisValue,
36
- const jsi::Value *args,
37
- size_t count) -> jsi::Value {
38
- return jsi::Value::undefined();
39
- };
40
- jsi::Function __reanimatedWorkletInit = jsi::Function::createFromHostFunction(
41
- rt,
42
- jsi::PropNameID::forAscii(rt, "__reanimatedWorkletInit"),
43
- 1,
44
- dummyFunction);
45
-
46
- dummyGlobal.setProperty(
47
- rt, "__reanimatedWorkletInit", __reanimatedWorkletInit);
48
34
  rt.global().setProperty(rt, "global", dummyGlobal);
49
35
 
50
36
  rt.global().setProperty(rt, "jsThis", jsi::Value::undefined());
@@ -1,2 +1,2 @@
1
- #Mon Apr 04 19:58:22 UTC 2022
1
+ #Mon Apr 11 15:37:15 UTC 2022
2
2
  gradle.version=7.2
@@ -147,14 +147,17 @@ public class NativeProxy {
147
147
  }
148
148
 
149
149
  private void addDevMenuOption() {
150
- final DevSupportManager devSupportManager =
151
- ((ReactApplication) mContext.get().getApplicationContext())
152
- .getReactNativeHost()
153
- .getReactInstanceManager()
154
- .getDevSupportManager();
155
-
156
- devSupportManager.addCustomDevOption(
157
- "Toggle slow animations (Reanimated)", this::toggleSlowAnimations);
150
+ // In Expo, `ApplicationContext` is not an instance of `ReactApplication`
151
+ if (mContext.get().getApplicationContext() instanceof ReactApplication) {
152
+ final DevSupportManager devSupportManager =
153
+ ((ReactApplication) mContext.get().getApplicationContext())
154
+ .getReactNativeHost()
155
+ .getReactInstanceManager()
156
+ .getDevSupportManager();
157
+
158
+ devSupportManager.addCustomDevOption(
159
+ "Toggle slow animations (Reanimated)", this::toggleSlowAnimations);
160
+ }
158
161
  }
159
162
 
160
163
  @DoNotStrip
@@ -1,5 +1,6 @@
1
1
  package com.swmansion.reanimated.layoutReanimation;
2
2
 
3
+ import android.app.Activity;
3
4
  import android.util.DisplayMetrics;
4
5
  import android.util.Log;
5
6
  import android.view.View;
@@ -368,12 +369,18 @@ public class AnimationsManager implements ViewHierarchyObserver {
368
369
  preparedValues.put(key, PixelUtil.toDIPFromPixel((int) values.get(key)));
369
370
  }
370
371
 
371
- DisplayMetrics displaymetrics = new DisplayMetrics();
372
- mContext.getCurrentActivity().getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
373
- int height = displaymetrics.heightPixels;
374
- int width = displaymetrics.widthPixels;
375
- preparedValues.put("windowWidth", PixelUtil.toDIPFromPixel(width));
376
- preparedValues.put("windowHeight", PixelUtil.toDIPFromPixel(height));
372
+ DisplayMetrics displayMetrics = new DisplayMetrics();
373
+ Activity currentActivity = mContext.getCurrentActivity();
374
+ if (currentActivity != null) {
375
+ currentActivity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
376
+ int height = displayMetrics.heightPixels;
377
+ int width = displayMetrics.widthPixels;
378
+ preparedValues.put("windowWidth", PixelUtil.toDIPFromPixel(width));
379
+ preparedValues.put("windowHeight", PixelUtil.toDIPFromPixel(height));
380
+ } else {
381
+ preparedValues.put("windowWidth", PixelUtil.toDIPFromPixel(0));
382
+ preparedValues.put("windowHeight", PixelUtil.toDIPFromPixel(0));
383
+ }
377
384
  return preparedValues;
378
385
  }
379
386
 
@@ -1,6 +1,6 @@
1
1
  #import <Foundation/Foundation.h>
2
+ #import <RNReanimated/REASnapshot.h>
2
3
  #import <React/RCTUIManager.h>
3
- #import "REASnapshot.h"
4
4
 
5
5
  NS_ASSUME_NONNULL_BEGIN
6
6
 
@@ -1,9 +1,9 @@
1
- #import "REAAnimationsManager.h"
1
+ #import <RNReanimated/REAAnimationsManager.h>
2
+ #import <RNReanimated/REAUIManager.h>
2
3
  #import <React/RCTComponentData.h>
3
4
  #import <React/RCTTextView.h>
4
5
  #import <React/UIView+Private.h>
5
6
  #import <React/UIView+React.h>
6
- #import "REAUIManager.h"
7
7
 
8
8
  @interface REAAnimationsManager ()
9
9
 
@@ -1,5 +1,5 @@
1
- #import "REASnapshot.h"
2
1
  #import <Foundation/Foundation.h>
2
+ #import <RNReanimated/REASnapshot.h>
3
3
 
4
4
  NS_ASSUME_NONNULL_BEGIN
5
5
 
@@ -1,7 +1,7 @@
1
+ #import <RNReanimated/REAAnimationsManager.h>
1
2
  #import <React/RCTBridge+Private.h>
2
3
  #import <React/RCTDefines.h>
3
4
  #import <React/RCTUIManager.h>
4
- #import "REAAnimationsManager.h"
5
5
 
6
6
  NS_ASSUME_NONNULL_BEGIN
7
7
 
@@ -1,9 +1,8 @@
1
- #import "REAUIManager.h"
2
1
  #import <Foundation/Foundation.h>
3
- #include "FeaturesConfig.h"
4
- #import "REAIOSScheduler.h"
5
- #include "Scheduler.h"
6
-
2
+ #import <RNReanimated/FeaturesConfig.h>
3
+ #import <RNReanimated/REAIOSScheduler.h>
4
+ #import <RNReanimated/REAUIManager.h>
5
+ #import <RNReanimated/Scheduler.h>
7
6
  #import <React/RCTComponentData.h>
8
7
  #import <React/RCTLayoutAnimation.h>
9
8
  #import <React/RCTLayoutAnimationGroup.h>
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REAAlwaysNode : REANode <REAFinalNode>
4
4
  @end
@@ -1,11 +1,11 @@
1
- #import "REAAlwaysNode.h"
1
+ #import <RNReanimated/REAAlwaysNode.h>
2
+ #import <RNReanimated/REAModule.h>
3
+ #import <RNReanimated/REANodesManager.h>
4
+ #import <RNReanimated/REAStyleNode.h>
5
+ #import <RNReanimated/REAUtils.h>
2
6
  #import <React/RCTConvert.h>
3
7
  #import <React/RCTLog.h>
4
8
  #import <React/RCTUIManager.h>
5
- #import "REAModule.h"
6
- #import "REANodesManager.h"
7
- #import "REAStyleNode.h"
8
- #import "REAUtils.h"
9
9
 
10
10
  @implementation REAAlwaysNode {
11
11
  NSNumber *_nodeToBeEvaluated;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REABezierNode : REANode
4
4
 
@@ -1,10 +1,9 @@
1
- #include <tgmath.h>
2
-
1
+ #import <RNReanimated/REABezierNode.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAUtils.h>
3
4
  #import <React/RCTConvert.h>
4
5
  #import <React/RCTLog.h>
5
- #import "REABezierNode.h"
6
- #import "REANodesManager.h"
7
- #import "REAUtils.h"
6
+ #include <tgmath.h>
8
7
 
9
8
  #define EPS 1e-5
10
9
 
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REABlockNode : REANode
4
4
 
@@ -1,5 +1,5 @@
1
- #import "REABlockNode.h"
2
- #import "REANodesManager.h"
1
+ #import <RNReanimated/REABlockNode.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
3
 
4
4
  @implementation REABlockNode {
5
5
  NSArray<NSNumber *> *_block;
@@ -1,5 +1,5 @@
1
1
 
2
- #import "REANode.h"
2
+ #import <RNReanimated/REANode.h>
3
3
 
4
4
  @interface REACallFuncNode : REANode
5
5
 
@@ -1,10 +1,10 @@
1
1
 
2
2
 
3
- #import "REACallFuncNode.h"
4
- #import "REAFunctionNode.h"
5
- #import "REANodesManager.h"
6
- #import "REAParamNode.h"
7
- #import "REAUtils.h"
3
+ #import <RNReanimated/REACallFuncNode.h>
4
+ #import <RNReanimated/REAFunctionNode.h>
5
+ #import <RNReanimated/REANodesManager.h>
6
+ #import <RNReanimated/REAParamNode.h>
7
+ #import <RNReanimated/REAUtils.h>
8
8
 
9
9
  @implementation REACallFuncNode {
10
10
  NSNumber *_whatNodeID;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REAClockNode : REANode
4
4
  @property (nonatomic, readonly) BOOL isRunning;
@@ -1,9 +1,9 @@
1
- #import "REAClockNodes.h"
1
+ #import <RNReanimated/REAClockNodes.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAParamNode.h>
4
+ #import <RNReanimated/REAUtils.h>
2
5
  #import <React/RCTConvert.h>
3
6
  #import <React/RCTLog.h>
4
- #import "REANodesManager.h"
5
- #import "REAParamNode.h"
6
- #import "REAUtils.h"
7
7
 
8
8
  @interface REAClockNode ()
9
9
 
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REAConcatNode : REANode
4
4
 
@@ -1,6 +1,6 @@
1
- #import "REAConcatNode.h"
2
- #import "REANodesManager.h"
3
- #import "REAValueNode.h"
1
+ #import <RNReanimated/REAConcatNode.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAValueNode.h>
4
4
 
5
5
  @implementation REAConcatNode {
6
6
  NSArray<NSNumber *> *_input;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REACondNode : REANode
4
4
 
@@ -1,8 +1,8 @@
1
- #import "REACondNode.h"
1
+ #import <RNReanimated/REACondNode.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAUtils.h>
2
4
  #import <React/RCTConvert.h>
3
5
  #import <React/RCTLog.h>
4
- #import "REANodesManager.h"
5
- #import "REAUtils.h"
6
6
 
7
7
  @implementation REACondNode {
8
8
  NSNumber *_condNodeID;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface READebugNode : REANode
4
4
 
@@ -1,8 +1,8 @@
1
- #import "READebugNode.h"
1
+ #import <RNReanimated/READebugNode.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAUtils.h>
2
4
  #import <React/RCTConvert.h>
3
5
  #import <React/RCTLog.h>
4
- #import "REANodesManager.h"
5
- #import "REAUtils.h"
6
6
 
7
7
  @implementation READebugNode {
8
8
  NSNumber *_valueNodeID;
@@ -1,5 +1,4 @@
1
- #import "REANode.h"
2
-
1
+ #import <RNReanimated/REANode.h>
3
2
  #import <React/RCTEventDispatcher.h>
4
3
 
5
4
  @interface REAEventNode : REANode
@@ -1,6 +1,6 @@
1
- #import "REAEventNode.h"
2
- #import "REANodesManager.h"
3
- #import "REAValueNode.h"
1
+ #import <RNReanimated/REAEventNode.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAValueNode.h>
4
4
 
5
5
  @implementation REAEventNode {
6
6
  NSArray *_argMapping;
@@ -1,5 +1,5 @@
1
1
 
2
- #import "REANode.h"
2
+ #import <RNReanimated/REANode.h>
3
3
 
4
4
  @interface REAFunctionNode : REANode
5
5
 
@@ -1,7 +1,7 @@
1
1
 
2
- #import "REAFunctionNode.h"
3
- #import "REANodesManager.h"
4
- #import "REAParamNode.h"
2
+ #import <RNReanimated/REAFunctionNode.h>
3
+ #import <RNReanimated/REANodesManager.h>
4
+ #import <RNReanimated/REAParamNode.h>
5
5
 
6
6
  @implementation REAFunctionNode {
7
7
  NSNumber *_nodeToBeEvaluated;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REAJSCallNode : REANode
4
4
 
@@ -1,6 +1,6 @@
1
- #import "REAJSCallNode.h"
2
- #import "REAModule.h"
3
- #import "REANodesManager.h"
1
+ #import <RNReanimated/REAJSCallNode.h>
2
+ #import <RNReanimated/REAModule.h>
3
+ #import <RNReanimated/REANodesManager.h>
4
4
 
5
5
  @implementation REAJSCallNode {
6
6
  NSArray<NSNumber *> *_input;
@@ -1,5 +1,5 @@
1
- #import "REANode.h"
2
- #import "REANodesManager.h"
1
+ #import <RNReanimated/REANode.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
3
 
4
4
  #import <React/RCTDefines.h>
5
5
 
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REAOperatorNode : REANode
4
4
 
@@ -1,8 +1,7 @@
1
+ #import <RNReanimated/REANodesManager.h>
2
+ #import <RNReanimated/REAOperatorNode.h>
1
3
  #include <tgmath.h>
2
4
 
3
- #import "REANodesManager.h"
4
- #import "REAOperatorNode.h"
5
-
6
5
  typedef id (^REAOperatorBlock)(NSArray<REANode *> *inputNodes);
7
6
 
8
7
  #define REA_REDUCE(OP) \
@@ -1,4 +1,4 @@
1
- #import "REAValueNode.h"
1
+ #import <RNReanimated/REAValueNode.h>
2
2
 
3
3
  @interface REAParamNode : REAValueNode
4
4
 
@@ -1,7 +1,7 @@
1
- #import "REAParamNode.h"
2
- #import "REAClockNodes.h"
3
- #import "REANodesManager.h"
4
- #import "REAValueNode.h"
1
+ #import <RNReanimated/REAClockNodes.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAParamNode.h>
4
+ #import <RNReanimated/REAValueNode.h>
5
5
 
6
6
  @implementation REAParamNode {
7
7
  NSMutableArray<REANodeID> *_argstack;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REAPropsNode : REANode <REAFinalNode>
4
4
 
@@ -1,9 +1,7 @@
1
- #import "REAPropsNode.h"
2
-
3
- #import "REAModule.h"
4
- #import "REANodesManager.h"
5
- #import "REAStyleNode.h"
6
-
1
+ #import <RNReanimated/REAModule.h>
2
+ #import <RNReanimated/REANodesManager.h>
3
+ #import <RNReanimated/REAPropsNode.h>
4
+ #import <RNReanimated/REAStyleNode.h>
7
5
  #import <React/RCTComponentData.h>
8
6
  #import <React/RCTLog.h>
9
7
  #import <React/RCTUIManager.h>
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REASetNode : REANode
4
4
 
@@ -1,9 +1,9 @@
1
- #import "REASetNode.h"
1
+ #import <RNReanimated/REANodesManager.h>
2
+ #import <RNReanimated/REASetNode.h>
3
+ #import <RNReanimated/REAUtils.h>
4
+ #import <RNReanimated/REAValueNode.h>
2
5
  #import <React/RCTConvert.h>
3
6
  #import <React/RCTLog.h>
4
- #import "REANodesManager.h"
5
- #import "REAUtils.h"
6
- #import "REAValueNode.h"
7
7
 
8
8
  @implementation REASetNode {
9
9
  NSNumber *_whatNodeID;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REAStyleNode : REANode
4
4
 
@@ -1,6 +1,5 @@
1
- #import "REAStyleNode.h"
2
-
3
- #import "REANodesManager.h"
1
+ #import <RNReanimated/REANodesManager.h>
2
+ #import <RNReanimated/REAStyleNode.h>
4
3
 
5
4
  @implementation REAStyleNode {
6
5
  NSMutableDictionary<NSString *, REANodeID> *_styleConfig;
@@ -1,4 +1,4 @@
1
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
2
2
 
3
3
  @interface REATransformNode : REANode
4
4
 
@@ -1,6 +1,6 @@
1
- #import "REATransformNode.h"
1
+ #import <RNReanimated/REANodesManager.h>
2
+ #import <RNReanimated/REATransformNode.h>
2
3
  #import <React/RCTConvert.h>
3
- #import "REANodesManager.h"
4
4
 
5
5
  @implementation REATransformNode {
6
6
  NSArray<id> *_transformConfigs;
@@ -1,6 +1,4 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "REANode.h"
1
+ #import <RNReanimated/REANode.h>
4
2
 
5
3
  @class REAValueNode;
6
4
 
@@ -1,4 +1,4 @@
1
- #import "REAValueNode.h"
1
+ #import <RNReanimated/REAValueNode.h>
2
2
 
3
3
  @implementation REAValueNode {
4
4
  NSNumber *_value;
@@ -1,4 +1,4 @@
1
- #import "REAEventDispatcher.h"
1
+ #import <RNReanimated/REAEventDispatcher.h>
2
2
  #import <RNReanimated/REAModule.h>
3
3
  #import <React/RCTBridge+Private.h>
4
4
  #import <React/RCTDefines.h>
package/ios/REAModule.h CHANGED
@@ -5,7 +5,7 @@
5
5
  #import <React/RCTUIManagerObserverCoordinator.h>
6
6
  #import <React/RCTUIManagerUtils.h>
7
7
 
8
- #import "REAValueNode.h"
8
+ #import <RNReanimated/REAValueNode.h>
9
9
 
10
10
  @interface REAModule : RCTEventEmitter <RCTBridgeModule, RCTEventDispatcherObserver, RCTUIManagerObserver>
11
11
 
package/ios/REAModule.m CHANGED
@@ -1,8 +1,7 @@
1
- #import "REAModule.h"
2
-
3
- #import "REANodesManager.h"
4
- #import "Transitioning/REATransitionManager.h"
5
- #import "native/NativeProxy.h"
1
+ #import <RNReanimated/NativeProxy.h>
2
+ #import <RNReanimated/REAModule.h>
3
+ #import <RNReanimated/REANodesManager.h>
4
+ #import <RNReanimated/REATransitionManager.h>
6
5
 
7
6
  typedef void (^AnimatedOperation)(REANodesManager *nodesManager);
8
7
 
@@ -1,8 +1,7 @@
1
1
  #import <Foundation/Foundation.h>
2
-
2
+ #import <RNReanimated/REANode.h>
3
3
  #import <React/RCTBridgeModule.h>
4
4
  #import <React/RCTUIManager.h>
5
- #import "REANode.h"
6
5
 
7
6
  @class REAModule;
8
7