fixed crash when setting custom shadow props to null

Reviewed By: emilsjolander

Differential Revision: D3923634

fbshipit-source-id: 005e316e70fa280960c796375b2e94f9967a089d
This commit is contained in:
Martin Kralik
2016-09-27 03:36:32 -07:00
committed by Facebook Github Bot 8
parent 0a0dd30c6a
commit cfae3e376d
2 changed files with 22 additions and 10 deletions

View File

@@ -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