From 8989ff925d7b1aab9ad53d2151b9bd1448e76927 Mon Sep 17 00:00:00 2001 From: Martin Kralik Date: Tue, 27 Oct 2015 05:07:41 -0700 Subject: [PATCH] nil instead of empty `RCTViewManagerUIBlock` block Summary: There is no point in returning empty block here. It's a tiny bit wasteful and prevents us from knowing if there are any UI updates. Depends on D2571122 (not really). public Reviewed By: jspahrsummers Differential Revision: D2571137 fb-gh-sync-id: 4a872f33f05eaf2d858009aa04ea89feaa23576c --- Libraries/Text/RCTTextManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Text/RCTTextManager.m b/Libraries/Text/RCTTextManager.m index f7150b46b..1b205ca08 100644 --- a/Libraries/Text/RCTTextManager.m +++ b/Libraries/Text/RCTTextManager.m @@ -88,7 +88,7 @@ RCT_EXPORT_SHADOW_PROPERTY(allowFontScaling, BOOL) } } - return ^(RCTUIManager *uiManager, RCTSparseArray *viewRegistry) {}; + return nil; } - (RCTViewManagerUIBlock)uiBlockToAmendWithShadowView:(RCTShadowText *)shadowView