Fixing clowntown in RCTUIManager
Reviewed By: mmmulani Differential Revision: D5851596 fbshipit-source-id: 952dc8af4ee2af4522725873187b6281b62642cc
This commit is contained in:
parent
38c8b6dd42
commit
d7f6208649
|
@ -768,7 +768,7 @@ RCT_EXPORT_METHOD(removeSubviewsFromContainerWithID:(nonnull NSNumber *)containe
|
|||
// So, let's temporary restore the view back after removing.
|
||||
// To do so, we have to memorize original `superview` (which can differ from `container`) and an index of removed view.
|
||||
UIView *originalSuperview = removedChild.superview;
|
||||
NSUInteger *originalIndex = [originalSuperview.subviews indexOfObject:removedChild];
|
||||
NSUInteger originalIndex = [originalSuperview.subviews indexOfObject:removedChild];
|
||||
[container removeReactSubview:removedChild];
|
||||
[originalSuperview insertSubview:removedChild atIndex:originalIndex];
|
||||
|
||||
|
|
Loading…
Reference in New Issue