Permalink
Browse files

Fixing clowntown in RCTUIManager

Reviewed By: mmmulani

Differential Revision: D5851596

fbshipit-source-id: 952dc8af4ee2af4522725873187b6281b62642cc
  • Loading branch information...
shergin authored and facebook-github-bot committed Sep 18, 2017
1 parent 38c8b6d commit d7f620864969fc10c6a623301a466b7915ec75d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 React/Modules/RCTUIManager.m
@@ -768,7 +768,7 @@ - (void)_removeChildren:(NSArray<UIView *> *)children
// 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];

0 comments on commit d7f6208

Please sign in to comment.