Fix ReactART

This commit is contained in:
Nick Lockwood
2015-08-11 21:12:55 -01:00
parent 1e1efce69b
commit 39230000de

View File

@@ -765,11 +765,11 @@ RCT_EXPORT_METHOD(createView:(nonnull NSNumber *)reactTag
}
RCT_EXPORT_METHOD(updateView:(nonnull NSNumber *)reactTag
viewName:(__unused NSString *)viewName // not reliable, do not use
viewName:(NSString *)viewName // not always reliable, use shadowView.viewName if available
props:(NSDictionary *)props)
{
RCTShadowView *shadowView = _shadowViewRegistry[reactTag];
RCTComponentData *componentData = _componentDataByName[shadowView.viewName];
RCTComponentData *componentData = _componentDataByName[shadowView.viewName ?: viewName];
[componentData setProps:props forShadowView:shadowView];
[self addUIBlock:^(__unused RCTUIManager *uiManager, RCTSparseArray *viewRegistry) {