@onekeyfe/react-native-native-sheet 3.0.149 → 3.0.150

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.
@@ -373,7 +373,9 @@ private final class NativeSheetViewController: UIViewController,
373
373
  min(max(self?.targetHeight ?? 1, 1), context.maximumDetentValue)
374
374
  }
375
375
  if #available(iOS 26.1, *) {
376
- detent.backgroundEffect = UIColorEffect(color: backgroundColorValue)
376
+ let backgroundEffect = UIColorEffect(color: backgroundColorValue)
377
+ sheet.backgroundEffect = backgroundEffect
378
+ detent.backgroundEffect = backgroundEffect
377
379
  }
378
380
  sheet.detents = [detent]
379
381
  sheet.selectedDetentIdentifier = detentIdentifier
@@ -618,9 +620,8 @@ private final class NativeSheetViewController: UIViewController,
618
620
  transitionCoordinator.animate(alongsideTransition: { _ in
619
621
  animations()
620
622
  }, completion: { context in
621
- dimmingView.alpha = context.isCancelled
622
- ? (visible ? 0 : self.dimAmountValue)
623
- : targetAlpha
623
+ guard !context.isCancelled else { return }
624
+ dimmingView.alpha = targetAlpha
624
625
  })
625
626
  } else {
626
627
  UIView.animate(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-native-sheet",
3
- "version": "3.0.149",
3
+ "version": "3.0.150",
4
4
  "description": "Native bottom sheet host for arbitrary React Native content",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",