Use unique id for both root and hosting views

Summary: Same as D19600721, but supports hosting views too.

Reviewed By: cuva

Differential Revision: D19949935

fbshipit-source-id: 4490b03aff9f6d00003cf59468081cc3a4fef598
This commit is contained in:
Andrey Mishanin
2020-03-11 09:27:05 -07:00
committed by Facebook GitHub Bot
parent 0b8c2e27aa
commit 127cb604be
4 changed files with 4 additions and 9 deletions

View File

@@ -47,10 +47,6 @@ static CKFlexboxComponentChild findFlexboxLayoutParams(
@implementation SKComponentLayoutWrapper
+ (instancetype)newFromRoot:(id<CKInspectableView>)root {
return [self newFromRoot:root parentKey:@""];
}
+ (instancetype)newFromRoot:(id<CKInspectableView>)root
parentKey:(NSString*)parentKey {
const CKComponentLayout layout = [root mountedLayout];