@lodev09/react-native-true-sheet 3.6.1 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -675,12 +675,20 @@
675
675
  }
676
676
 
677
677
  // iOS 26.1+: use native backgroundEffect when only backgroundBlur is set (no backgroundColor)
678
+ // Fall back to TrueSheetBlurView when blur intensity is set (not 100%) since
679
+ // sheet.backgroundEffect doesn't support intensity control
678
680
  if (@available(iOS 26.1, *)) {
679
681
  if (useBackgroundEffect) {
682
+ BOOL hasCustomIntensity = self.blurIntensity && [self.blurIntensity floatValue] < 100;
680
683
  if (!self.backgroundColor && self.backgroundBlur && self.backgroundBlur.length > 0) {
681
- UIBlurEffectStyle style = [BlurUtil blurEffectStyleFromString:self.backgroundBlur];
682
- self.sheet.backgroundEffect = [UIBlurEffect effectWithStyle:style];
683
- return;
684
+ if (hasCustomIntensity) {
685
+ // Clear native effect to allow custom blur view with intensity
686
+ self.sheet.backgroundEffect = [UIColorEffect effectWithColor:[UIColor clearColor]];
687
+ } else {
688
+ UIBlurEffectStyle style = [BlurUtil blurEffectStyleFromString:self.backgroundBlur];
689
+ self.sheet.backgroundEffect = [UIBlurEffect effectWithStyle:style];
690
+ return;
691
+ }
684
692
  }
685
693
  }
686
694
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lodev09/react-native-true-sheet",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "description": "The true native bottom sheet experience for your React Native Apps.",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/module/index.js",