mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-02 17:18:58 +08:00
Fix ReactART
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user