mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Adopting Yoga's YGConfig in RCTShadowView
Reviewed By: javache Differential Revision: D4932540 fbshipit-source-id: 4a5ff3b34fc635b3291dff9a7c1a603179c90fa7
This commit is contained in:
committed by
Facebook Github Bot
parent
c6614f117f
commit
ca07a5fd5f
@@ -35,6 +35,13 @@ typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, UIView *> *viewRegistry
|
||||
*/
|
||||
@interface RCTShadowView : NSObject <RCTComponent>
|
||||
|
||||
/**
|
||||
* Yoga Config which will be used to create `yogaNode` property.
|
||||
* Override in subclass to enable special Yoga features.
|
||||
* Defaults to suitable to current device configuration.
|
||||
*/
|
||||
+ (YGConfigRef)yogaConfig;
|
||||
|
||||
/**
|
||||
* RCTComponent interface.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user