Added nt stack trace param in SKComponentLayoutDescriptor
Summary: Added stack trace param in layout node descriptor Reviewed By: priteshrnandgaonkar Differential Revision: D10850248 fbshipit-source-id: 0d647c773528f40a349b6738ecfafed0f22df193
This commit is contained in:
committed by
Facebook Github Bot
parent
e418a810e6
commit
a2c4c98feb
@@ -97,9 +97,18 @@
|
||||
return data;
|
||||
}
|
||||
|
||||
#if !defined(FLIPPER_OSS)
|
||||
- (NSString *) getStackTrace:(CKFlexboxComponentChild)child{
|
||||
return [child.component sonar_getName];
|
||||
}
|
||||
#endif
|
||||
|
||||
- (NSDictionary<NSString *, NSObject *> *)propsForFlexboxChild:(CKFlexboxComponentChild)child {
|
||||
return @{
|
||||
@"spacingBefore": SKObject(@(child.spacingBefore)),
|
||||
#if !defined(FLIPPER_OSS)
|
||||
@"NT Stack Trace": [self getStackTrace:child],
|
||||
#endif
|
||||
@"spacingAfter": SKObject(@(child.spacingAfter)),
|
||||
@"flexGrow": SKObject(@(child.flexGrow)),
|
||||
@"flexShrink": SKObject(@(child.flexShrink)),
|
||||
|
||||
Reference in New Issue
Block a user