Skip to content

Commit f490a4d

Browse files
Send null for a removed shadowColor in View Props 2.0 payloads
1 parent 5326d83 commit f490a4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view

‎packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,8 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
578578
}
579579

580580
if (shadowColor != oldProps->shadowColor) {
581-
result["shadowColor"] = *shadowColor;
581+
result["shadowColor"] =
582+
shadowColor ? folly::dynamic(*shadowColor) : folly::dynamic(nullptr);
582583
}
583584

584585
if (shadowOpacity != oldProps->shadowOpacity) {

0 commit comments

Comments
 (0)