mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 00:23:26 +00:00
Revert D6596375: [RN] Removed unnecessary code path in [RCTUIManager updateView:]
Differential Revision: D6596375 fbshipit-source-id: f8b0ea2dafbf997a18e9c86fb279682d31b06d0e
This commit is contained in:
parent
4216cdef13
commit
fc5e340e89
@ -988,13 +988,11 @@ RCT_EXPORT_METHOD(createView:(nonnull NSNumber *)reactTag
|
|||||||
}
|
}
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(updateView:(nonnull NSNumber *)reactTag
|
RCT_EXPORT_METHOD(updateView:(nonnull NSNumber *)reactTag
|
||||||
viewName:(__unused NSString *)viewName
|
viewName:(NSString *)viewName // not always reliable, use shadowView.viewName if available
|
||||||
props:(NSDictionary *)props)
|
props:(NSDictionary *)props)
|
||||||
{
|
{
|
||||||
RCTShadowView *shadowView = _shadowViewRegistry[reactTag];
|
RCTShadowView *shadowView = _shadowViewRegistry[reactTag];
|
||||||
RCTAssert(shadowView != nil, @"Shadow view with tag = %@ not found.", reactTag);
|
RCTComponentData *componentData = _componentDataByName[shadowView.viewName ?: viewName];
|
||||||
|
|
||||||
RCTComponentData *componentData = _componentDataByName[shadowView.viewName];
|
|
||||||
[componentData setProps:props forShadowView:shadowView];
|
[componentData setProps:props forShadowView:shadowView];
|
||||||
|
|
||||||
[self addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
|
[self addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user