diff --git a/apps/fabric-example/ios/Podfile.lock b/apps/fabric-example/ios/Podfile.lock index 8c0e7c9688c4..34fa6ab69fbd 100644 --- a/apps/fabric-example/ios/Podfile.lock +++ b/apps/fabric-example/ios/Podfile.lock @@ -2250,7 +2250,7 @@ SPEC CHECKSUMS: RNCMaskedView: 308c763227e237d4d260bd8841870e099572bb3e RNFlashList: b799a0cdd1189c1f5064331548400dd79a7e3047 RNGestureHandler: 70069ab3e0431b03f6e465b65745f87a1a02c6c0 - RNReanimated: 046c859afe6454f541abddad6fb755d8abc83351 + RNReanimated: 537897c4ac8d319041d74cd19b633a694fff3895 RNScreens: 5d61e452b51e7c23b3fcb9f16c4967d683a60a9d RNSVG: 2089e8b3a145acb2f392017279790f007f934567 SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 diff --git a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.cpp b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.cpp index 2b2b5849d941..c7e5181bfe1b 100644 --- a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.cpp +++ b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.cpp @@ -1,10 +1,6 @@ #ifdef RCT_NEW_ARCH_ENABLED #include -#include - -using namespace worklets; - namespace reanimated { CSSTransition::CSSTransition( @@ -62,8 +58,6 @@ jsi::Value CSSTransition::run( jsi::Runtime &rt, const ChangedProps &changedProps, const double timestamp) { - LOG(INFO) << "CSSTransition run newProps: " - << stringifyJSIValue(rt, changedProps.newProps); progressProvider_.runProgressProviders( timestamp, changedProps.changedPropertyNames, diff --git a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp index 142b967624b8..45c9c0c229ec 100644 --- a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp +++ b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp @@ -36,10 +36,6 @@ TransitionStyleInterpolator::getReversedPropertyNames( const auto propertyValue = propertyValuesObject.getProperty( rt, jsi::PropNameID::forUtf8(rt, propertyName)); - LOG(INFO) << "TransitionStyleInterpolator propertyName: " << propertyName; - LOG(INFO) << "TransitionStyleInterpolator propertyValue: " - << stringifyJSIValue(rt, propertyValue); - const auto it = interpolators_.find(propertyName); if (it != interpolators_.end() && it->second->equalsReversingAdjustedStartValue(rt, propertyValue)) { diff --git a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h index 37a3f00e4592..18ac3592a24d 100644 --- a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h +++ b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h @@ -9,12 +9,8 @@ #include #include -#include - namespace reanimated { -using namespace worklets; - struct ValueInterpolatorUpdateContext { const ShadowNode::Shared &node; }; @@ -83,8 +79,6 @@ class ValueInterpolator : public PropertyInterpolator { if (!reversingAdjustedStartValue_.has_value()) { return propertyValue.isUndefined(); } - LOG(INFO) << "ValueInterpolator equalsReversingAdjustedStartValue: " - << stringifyJSIValue(rt, propertyValue); return reversingAdjustedStartValue_.value() == ValueType(rt, propertyValue); } @@ -100,8 +94,6 @@ class ValueInterpolator : public PropertyInterpolator { keyframes_.push_back( ValueKeyframe{offset, std::nullopt}); } else { - LOG(INFO) << "ValueInterpolator keyframe value: " - << stringifyJSIValue(rt, value); keyframes_.push_back( ValueKeyframe{offset, ValueType(rt, value)}); } @@ -115,11 +107,6 @@ class ValueInterpolator : public PropertyInterpolator { keyframeAfterIndex_ = 1; ValueKeyframe firstKeyframe, lastKeyframe; - LOG(INFO) << "ValueInterpolator oldStyleValue: " - << stringifyJSIValue(rt, oldStyleValue); - LOG(INFO) << "ValueInterpolator newStyleValue: " - << stringifyJSIValue(rt, newStyleValue); - if (!oldStyleValue.isUndefined()) { reversingAdjustedStartValue_ = ValueType(rt, oldStyleValue); } else { @@ -203,8 +190,6 @@ class ValueInterpolator : public PropertyInterpolator { jsi::Runtime &rt, const ShadowNode::Shared &shadowNode) const { const jsi::Value &styleValue = getStyleValue(rt, shadowNode); - LOG(INFO) << "ValueInterpolator fallback value: " - << stringifyJSIValue(rt, styleValue); return styleValue.isUndefined() ? defaultStyleValue_ : ValueType(rt, styleValue); } diff --git a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/registry/CSSTransitionsRegistry.cpp b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/registry/CSSTransitionsRegistry.cpp index dd58a03fa1fe..c582436c13b7 100644 --- a/packages/react-native-reanimated/Common/cpp/reanimated/CSS/registry/CSSTransitionsRegistry.cpp +++ b/packages/react-native-reanimated/Common/cpp/reanimated/CSS/registry/CSSTransitionsRegistry.cpp @@ -1,12 +1,8 @@ #ifdef RCT_NEW_ARCH_ENABLED #include -#include - namespace reanimated { -using namespace worklets; - CSSTransitionsRegistry::CSSTransitionsRegistry( const std::shared_ptr &staticPropsRegistry, const GetAnimationTimestampFunction &getCurrentTimestamp) @@ -139,17 +135,6 @@ PropsObserver CSSTransitionsRegistry::createPropsObserver(const Tag viewTag) { transition->getAllowDiscrete(), transition->getProperties()); - LOG(INFO) << "changedPropertyNames: " - << changedProps.changedPropertyNames.size(); - for (const auto &propName : changedProps.changedPropertyNames) { - LOG(INFO) << "changedPropertyNames: " << propName; - } - - LOG(INFO) << "oldProps changedProps: " - << stringifyJSIValue(rt, changedProps.oldProps); - LOG(INFO) << "newProps changedProps: " - << stringifyJSIValue(rt, changedProps.newProps); - if (changedProps.changedPropertyNames.empty()) { return; } diff --git a/packages/react-native-reanimated/src/css/platform/native/style/processors/__tests__/shadows.test.ts b/packages/react-native-reanimated/src/css/platform/native/style/processors/__tests__/shadows.test.ts index 64405a317d72..aad623032395 100644 --- a/packages/react-native-reanimated/src/css/platform/native/style/processors/__tests__/shadows.test.ts +++ b/packages/react-native-reanimated/src/css/platform/native/style/processors/__tests__/shadows.test.ts @@ -1,3 +1,16 @@ import { processBoxShadow } from '../shadows'; -describe(processBoxShadow, () => {}); +describe(processBoxShadow, () => { + describe('returns a correct number of shadows', () => { + it('returns a correct number of shadows', () => { + expect(processBoxShadow('0 0 10px 0 red, 0 0 20px 0 blue')).toEqual([ + { + offsetX: 0, + offsetY: 0, + blurRadius: 10, + color: 'red', + }, + ]); + }); + }); +});