Skip to content

Commit 31a9eee

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Add missing props to AnimatedPropsRegistry
Summary: Changelog: [General][Fixed] - Added handling of missing props to `AnimatedPropsRegistry` Reviewed By: bartlomiejbloniarz Differential Revision: D88945661 fbshipit-source-id: 8e1f757a3cf0fdd8bb159a8ec3e1292793d4162f
1 parent ac8fa25 commit 31a9eee

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

packages/react-native/ReactCommon/react/renderer/animationbackend/AnimatedPropsRegistry.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,22 @@ inline void updateProp(const PropName propName, BaseViewProps &viewProps, const
7777
case BACKGROUND_COLOR:
7878
viewProps.backgroundColor = snapshot.props.backgroundColor;
7979
break;
80+
81+
case SHADOW_COLOR:
82+
viewProps.shadowColor = snapshot.props.shadowColor;
83+
break;
84+
85+
case SHADOW_OFFSET:
86+
viewProps.shadowOffset = snapshot.props.shadowOffset;
87+
break;
88+
89+
case SHADOW_OPACITY:
90+
viewProps.shadowOpacity = snapshot.props.shadowOpacity;
91+
break;
92+
93+
case SHADOW_RADIUS:
94+
viewProps.shadowRadius = snapshot.props.shadowRadius;
95+
break;
8096
}
8197
}
8298

0 commit comments

Comments
 (0)