mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
fixed crash when setting custom shadow props to null
Reviewed By: emilsjolander Differential Revision: D3923634 fbshipit-source-id: 005e316e70fa280960c796375b2e94f9967a089d
This commit is contained in:
committed by
Facebook Github Bot 8
parent
0a0dd30c6a
commit
cfae3e376d
@@ -126,10 +126,10 @@ RCT_REMAP_VIEW_PROPERTY(name, __custom__, type) \
|
||||
/**
|
||||
* This macro can be used when you need to provide custom logic for setting
|
||||
* shadow view properties. The macro should be followed by a method body, which can
|
||||
* refer to "json", "view" and "defaultView" to implement the required logic.
|
||||
* refer to "json" and "view".
|
||||
*/
|
||||
#define RCT_CUSTOM_SHADOW_PROPERTY(name, type, viewClass) \
|
||||
RCT_REMAP_SHADOW_PROPERTY(name, __custom__, type) \
|
||||
- (void)set_##name:(id)json forShadowView:(viewClass *)view withDefaultView:(viewClass *)defaultView
|
||||
- (void)set_##name:(id)json forShadowView:(viewClass *)view
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user