react-native-sheet2 1.2.5 → 1.2.6

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.
@@ -25,7 +25,7 @@ class ModalHostShadowView: RCTShadowView {
25
25
  subview.position = .absolute
26
26
  }
27
27
  }
28
-
28
+
29
29
  func renderSizes(subviews: [RCTShadowView]?) {
30
30
  guard let subviews else { return }
31
31
  for v in subviews {
@@ -33,10 +33,10 @@ class ModalHostShadowView: RCTShadowView {
33
33
  renderSizes(subviews: v.reactSubviews())
34
34
  }
35
35
  }
36
-
36
+
37
37
  override func layoutSubviews(with layoutContext: RCTLayoutContext) {
38
38
  super.layoutSubviews(with: layoutContext)
39
-
39
+
40
40
  RCTExecuteOnMainQueue { [weak self] in
41
41
  guard let self else { return }
42
42
  let view = RCTBridge.current().uiManager.view(
@@ -116,7 +116,7 @@ class HostFittedSheet: UIView {
116
116
  var sheetMinHeightSize: NSNumber?
117
117
  private var topLeftRightCornerRadius: NSNumber?
118
118
  private var sheetBackgroundColor: UIColor?
119
-
119
+
120
120
  @objc
121
121
  func setPassScrollViewReactTag(_ tag: NSNumber) {
122
122
  debugPrint("😀 setPassScrollViewReactTag", tag)
@@ -277,7 +277,9 @@ class HostFittedSheet: UIView {
277
277
  ModalHostShadowView.attachedViews.removeValue(forKey: self.reactTag.intValue)
278
278
  self._modalViewController = nil
279
279
  self._reactSubview?.removeFromSuperview()
280
- self._touchHandler?.detach(from: self._reactSubview)
280
+ if let v = self._reactSubview {
281
+ self._touchHandler?.detach(from: self._reactSubview)
282
+ }
281
283
  self._touchHandler = nil
282
284
  self._bridge = nil
283
285
  self.onSheetDismiss = nil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-sheet2",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Native implementation of Bottom sheet",
5
5
  "main": "src/index",
6
6
  "module": "src/index",