@lodev09/react-native-true-sheet 3.4.0-beta.2 → 3.4.1

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # React Native True Sheet
2
2
 
3
- [![CI](https://github.com/lodev09/react-native-true-sheet/actions/workflows/ci.yml/badge.svg)](https://github.com/lodev09/react-native-true-sheet/actions/workflows/ci.yml)
3
+ [![CI](https://github.com/lodev09/react-native-true-sheet/actions/workflows/checks.yml/badge.svg)](https://github.com/lodev09/react-native-true-sheet/actions/workflows/checks.yml)
4
4
  [![NPM Downloads](https://img.shields.io/npm/d18m/%40lodev09%2Freact-native-true-sheet)](https://www.npmjs.com/package/@lodev09/react-native-true-sheet)
5
5
 
6
6
  > [!NOTE]
@@ -781,19 +781,26 @@
781
781
 
782
782
  self.view.backgroundColor = self.backgroundColor;
783
783
 
784
- BOOL blurTintChanged = ![_blurView.blurTint isEqualToString:self.blurTint];
784
+ NSString *effectiveBlurTint = self.blurTint;
785
+ if (@available(iOS 26.0, *)) {
786
+ // iOS 26+ has defualt liquid glass effect
787
+ } else if ((!effectiveBlurTint || effectiveBlurTint.length == 0) && !self.backgroundColor) {
788
+ effectiveBlurTint = @"system-material";
789
+ }
790
+
791
+ BOOL blurTintChanged = ![_blurView.blurTint isEqualToString:effectiveBlurTint];
785
792
 
786
793
  if (_blurView && blurTintChanged) {
787
794
  [_blurView removeFromSuperview];
788
795
  _blurView = nil;
789
796
  }
790
797
 
791
- if (self.blurTint && self.blurTint.length > 0) {
798
+ if (effectiveBlurTint && effectiveBlurTint.length > 0) {
792
799
  if (!_blurView) {
793
800
  _blurView = [[TrueSheetBlurView alloc] init];
794
801
  [_blurView addToView:self.view];
795
802
  }
796
- _blurView.blurTint = self.blurTint;
803
+ _blurView.blurTint = effectiveBlurTint;
797
804
  _blurView.blurIntensity = self.blurIntensity;
798
805
  _blurView.blurInteraction = self.blurInteraction;
799
806
  [_blurView applyBlurEffect];
@@ -311,7 +311,7 @@ export interface TrueSheetProps extends ViewProps {
311
311
  pageSizing?: boolean;
312
312
  /**
313
313
  * The blur effect style on iOS.
314
- * Overrides `backgroundColor` if set.
314
+ * Blends with `backgroundColor` when provided.
315
315
  *
316
316
  * @platform ios
317
317
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lodev09/react-native-true-sheet",
3
- "version": "3.4.0-beta.2",
3
+ "version": "3.4.1",
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",
@@ -357,7 +357,7 @@ export interface TrueSheetProps extends ViewProps {
357
357
 
358
358
  /**
359
359
  * The blur effect style on iOS.
360
- * Overrides `backgroundColor` if set.
360
+ * Blends with `backgroundColor` when provided.
361
361
  *
362
362
  * @platform ios
363
363
  */