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
This commit is contained in:
Martin Kralik 2015-10-27 05:07:41 -07:00 committed by facebook-github-bot-5
parent af70d05838
commit 8989ff925d
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ RCT_EXPORT_SHADOW_PROPERTY(allowFontScaling, BOOL)
}
}
return ^(RCTUIManager *uiManager, RCTSparseArray *viewRegistry) {};
return nil;
}
- (RCTViewManagerUIBlock)uiBlockToAmendWithShadowView:(RCTShadowText *)shadowView