Fixing clowntown in RCTUIManager

Reviewed By: mmmulani

Differential Revision: D5851596

fbshipit-source-id: 952dc8af4ee2af4522725873187b6281b62642cc
This commit is contained in:
Valentin Shergin 2017-09-18 15:32:47 -07:00 committed by Facebook Github Bot
parent 38c8b6dd42
commit d7f6208649
1 changed files with 1 additions and 1 deletions

View File

@ -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];