Prevent measuring text in RCTShadowText child nodes

Summary: We only measure text at the root node, we shouldn't be trying to build a text storage later on for tree lower in the shadow node tree.

Reviewed By: nicklockwood

Differential Revision: D3212614

fb-gh-sync-id: 574fa7f2c029ca9ad2d5fabe7bbb148157f85ca7
fbshipit-source-id: 574fa7f2c029ca9ad2d5fabe7bbb148157f85ca7
This commit is contained in:
Pieter De Baets 2016-04-22 10:13:16 -07:00 committed by Facebook Github Bot 1
parent dfd1c7dd6a
commit 09f1e8293a
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ static css_dim_t RCTMeasure(void *context, float width, css_measure_mode_t width
- (NSDictionary<NSString *, id> *)processUpdatedProperties:(NSMutableSet<RCTApplierBlock> *)applierBlocks
parentProperties:(NSDictionary<NSString *, id> *)parentProperties
{
if ([[self reactSuperview] isKindOfClass:[RCTShadowText class]]) {
return parentProperties;
}
parentProperties = [super processUpdatedProperties:applierBlocks
parentProperties:parentProperties];