Fix spelling of descendant

Summary: Closes https://github.com/facebook/react-native/pull/6915

Differential Revision: D3162465

Pulled By: mkonicek

fb-gh-sync-id: e5237474f4ff901451c08bd904b78fabd15ab1dc
fbshipit-source-id: e5237474f4ff901451c08bd904b78fabd15ab1dc
This commit is contained in:
Ian Yu-Hsun Lin 2016-04-13 08:43:25 -07:00 committed by Facebook Github Bot 9
parent f9bd789206
commit 802fdefcd2

View File

@ -1159,7 +1159,7 @@ static void RCTMeasureLayout(RCTShadowView *view,
}
CGRect result = [view measureLayoutRelativeToAncestor:ancestor];
if (CGRectIsNull(result)) {
RCTLogError(@"view %@ (tag #%@) is not a decendant of %@ (tag #%@)",
RCTLogError(@"view %@ (tag #%@) is not a descendant of %@ (tag #%@)",
view, view.reactTag, ancestor, ancestor.reactTag);
return;
}
@ -1231,7 +1231,7 @@ RCT_EXPORT_METHOD(measureViewsInRect:(CGRect)rect
^(RCTShadowView *childShadowView, NSUInteger idx, __unused BOOL *stop) {
CGRect childLayout = [childShadowView measureLayoutRelativeToAncestor:shadowView];
if (CGRectIsNull(childLayout)) {
RCTLogError(@"View %@ (tag #%@) is not a decendant of %@ (tag #%@)",
RCTLogError(@"View %@ (tag #%@) is not a descendant of %@ (tag #%@)",
childShadowView, childShadowView.reactTag, shadowView, shadowView.reactTag);
return;
}