mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 19:48:30 +08:00
Return viewsWithNewFrame instead of passing it around
Reviewed By: nicklockwood Differential Revision: D2663281 fb-gh-sync-id: 6218c2ff68f7e4d8132ef1f95fb22f5007434319
This commit is contained in:
committed by
facebook-github-bot-4
parent
532c9112b4
commit
c043c68e7e
@@ -84,7 +84,7 @@
|
||||
[parentView insertReactSubview:footerView atIndex:2];
|
||||
|
||||
parentView.reactTag = @1; // must be valid rootView tag
|
||||
[parentView collectRootUpdatedFrames:nil];
|
||||
[parentView collectRootUpdatedFrames];
|
||||
|
||||
XCTAssertTrue(CGRectEqualToRect([parentView measureLayoutRelativeToAncestor:parentView], CGRectMake(0, 0, 440, 440)));
|
||||
XCTAssertTrue(UIEdgeInsetsEqualToEdgeInsets([parentView paddingAsInsets], UIEdgeInsetsMake(10, 10, 10, 10)));
|
||||
|
||||
Reference in New Issue
Block a user