From 173a5cc222bf52bc6b3f169406e1e648856ec7e5 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Fri, 21 Jun 2019 15:56:06 -0700 Subject: [PATCH] Fabric: Removing unnecessary assert in RCTParagraphComponentView Summary: This is strange why it's happening but it's not a reason to crash here. We will migrate the text component to State anyway, so we will fix the problem then. Reviewed By: JoshuaGross Differential Revision: D15951391 fbshipit-source-id: c1d1217fab1180f1eef84dfc2b2fd1ed0864b035 --- .../Mounting/ComponentViews/Text/RCTParagraphComponentView.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm b/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm index 50cc341874d..d7cf2d8d3eb 100644 --- a/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm @@ -66,7 +66,6 @@ using namespace facebook::react; - (void)updateLocalData:(SharedLocalData)localData oldLocalData:(SharedLocalData)oldLocalData { _paragraphLocalData = std::static_pointer_cast(localData); - assert(_paragraphLocalData); [self setNeedsDisplay]; }