@@ -64,8 +64,6 @@ ReanimatedModuleProxy::ReanimatedModuleProxy(
64
64
layoutAnimationsManager_(
65
65
std::make_shared<LayoutAnimationsManager>(jsLogger_)),
66
66
#ifdef RCT_NEW_ARCH_ENABLED
67
- synchronouslyUpdateUIPropsFunction_ (
68
- platformDepMethodsHolder.synchronouslyUpdateUIPropsFunction),
69
67
propsRegistry_ (std::make_shared<PropsRegistry>()),
70
68
#else
71
69
obtainPropFunction_ (platformDepMethodsHolder.obtainPropFunction),
@@ -489,7 +487,6 @@ jsi::Value ReanimatedModuleProxy::configureProps(
489
487
auto nativePropsArray = nativeProps.asObject (rt).asArray (rt);
490
488
for (size_t i = 0 ; i < nativePropsArray.size (rt); ++i) {
491
489
auto name = nativePropsArray.getValueAtIndex (rt, i).asString (rt).utf8 (rt);
492
- nativePropNames_.insert (name);
493
490
animatablePropNames_.insert (name);
494
491
}
495
492
#else
@@ -600,22 +597,6 @@ void ReanimatedModuleProxy::cleanupSensors() {
600
597
}
601
598
602
599
#ifdef RCT_NEW_ARCH_ENABLED
603
- bool ReanimatedModuleProxy::isThereAnyLayoutProp (
604
- jsi::Runtime &rt,
605
- const jsi::Object &props) {
606
- const jsi::Array propNames = props.getPropertyNames (rt);
607
- for (size_t i = 0 ; i < propNames.size (rt); ++i) {
608
- const std::string propName =
609
- propNames.getValueAtIndex (rt, i).asString (rt).utf8 (rt);
610
- bool isLayoutProp =
611
- nativePropNames_.find (propName) != nativePropNames_.end ();
612
- if (isLayoutProp) {
613
- return true ;
614
- }
615
- }
616
- return false ;
617
- }
618
-
619
600
jsi::Value ReanimatedModuleProxy::filterNonAnimatableProps (
620
601
jsi::Runtime &rt,
621
602
const jsi::Value &props) {
@@ -760,25 +741,6 @@ void ReanimatedModuleProxy::performOperations() {
760
741
jsPropsUpdater.call (rt, viewTag, nonAnimatableProps);
761
742
}
762
743
763
- bool hasLayoutUpdates = false ;
764
-
765
- for (const auto &[shadowNode, props] : copiedOperationsQueue) {
766
- if (isThereAnyLayoutProp (rt, props->asObject (rt))) {
767
- hasLayoutUpdates = true ;
768
- break ;
769
- }
770
- }
771
-
772
- if (!hasLayoutUpdates) {
773
- // If there's no layout props to be updated, we can apply the updates
774
- // directly onto the components and skip the commit.
775
- for (const auto &[shadowNode, props] : copiedOperationsQueue) {
776
- Tag tag = shadowNode->getTag ();
777
- synchronouslyUpdateUIPropsFunction_ (rt, tag, props->asObject (rt));
778
- }
779
- return ;
780
- }
781
-
782
744
if (propsRegistry_->shouldReanimatedSkipCommit ()) {
783
745
// It may happen that `performOperations` is called on the UI thread
784
746
// while React Native tries to commit a new tree on the JS thread.
0 commit comments