diff --git a/ios/MarkdownTextInputViewManager.mm b/ios/MarkdownTextInputViewManager.mm index ad4a2829..1f9f911f 100644 --- a/ios/MarkdownTextInputViewManager.mm +++ b/ios/MarkdownTextInputViewManager.mm @@ -17,7 +17,7 @@ @interface MarkdownTextInputView : UIView @implementation MarkdownTextInputView - (void)didMoveToWindow { - NSArray *viewsArray = self.superview.subviews; + NSArray *viewsArray = self.reactSuperview.reactSubviews; NSUInteger currentIndex = [viewsArray indexOfObject:self]; if (currentIndex == 0 || currentIndex == NSNotFound) { return;