mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
[react-native] Fix race condition in removeSubviewsFromContainerWithID:
This commit is contained in:
parent
db693f32a9
commit
42689c44fd
@ -507,7 +507,7 @@ static NSString *RCTViewNameForModuleName(NSString *moduleName)
|
|||||||
{
|
{
|
||||||
RCT_EXPORT();
|
RCT_EXPORT();
|
||||||
|
|
||||||
id<RCTViewNodeProtocol> container = _viewRegistry[containerID];
|
id<RCTViewNodeProtocol> container = _shadowViewRegistry[containerID];
|
||||||
RCTAssert(container != nil, @"container view (for ID %@) not found", containerID);
|
RCTAssert(container != nil, @"container view (for ID %@) not found", containerID);
|
||||||
|
|
||||||
NSUInteger subviewsCount = [[container reactSubviews] count];
|
NSUInteger subviewsCount = [[container reactSubviews] count];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user