diff --git a/ios/ReactNativeBlurView.mm b/ios/ReactNativeBlurView.mm index c095081..48ac3e9 100644 --- a/ios/ReactNativeBlurView.mm +++ b/ios/ReactNativeBlurView.mm @@ -242,7 +242,8 @@ - (void)layoutSubviews - (void)mountChildComponentView:(UIView *)childComponentView index:(NSInteger)index { - [_advancedBlurView addSubview:childComponentView]; + // Index zero belongs to the internal effect view, below all React children. + [_advancedBlurView insertSubview:childComponentView atIndex:index + 1]; } - (void)unmountChildComponentView:(UIView *)childComponentView index:(NSInteger)index diff --git a/ios/ReactNativeProgressiveBlurView.mm b/ios/ReactNativeProgressiveBlurView.mm index 45894fb..66c699f 100644 --- a/ios/ReactNativeProgressiveBlurView.mm +++ b/ios/ReactNativeProgressiveBlurView.mm @@ -243,7 +243,8 @@ - (void)layoutSubviews - (void)mountChildComponentView:(UIView *)childComponentView index:(NSInteger)index { - [_progressiveBlurView addSubview:childComponentView]; + // Index zero belongs to the internal effect view, below all React children. + [_progressiveBlurView insertSubview:childComponentView atIndex:index + 1]; } - (void)unmountChildComponentView:(UIView *)childComponentView index:(NSInteger)index