Skip to content

Commit

Permalink
Fixing clowntown in RCTUIManager
Browse files Browse the repository at this point in the history
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 d7f6208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Modules/RCTUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit d7f6208

Please sign in to comment.