From 2ee03b1b5e321bfe6e932e31a62e956bf20c62eb Mon Sep 17 00:00:00 2001 From: Oskar Eichler <62393985+OskarEichler@users.noreply.github.com> Date: Thu, 27 Aug 2026 23:31:48 +0300 Subject: [PATCH] fix(ios): honor Fabric child insertion indices --- ios/ReactNativeBlurView.mm | 3 ++- ios/ReactNativeProgressiveBlurView.mm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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