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:
parent
dfd1c7dd6a
commit
09f1e8293a
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue