Skip to content

Commit

Permalink
fix: uiManager can be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod authored Jun 10, 2024
1 parent 90b3586 commit b8d79c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/TrueSheetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class TrueSheetView: UIView, RCTInvalidating, TrueSheetViewControllerDelegate {
guard let containerView else { return }

let size = CGSize(width: width, height: containerView.bounds.height)
bridge?.uiManager.setSize(size, for: containerView)
bridge?.uiManager?.setSize(size, for: containerView)
}

func viewControllerWillAppear() {
Expand Down Expand Up @@ -297,7 +297,7 @@ class TrueSheetView: UIView, RCTInvalidating, TrueSheetViewControllerDelegate {

@objc
func setScrollableHandle(_ tag: NSNumber?) {
let view = bridge?.uiManager.view(forReactTag: tag) as? RCTScrollView
let view = bridge?.uiManager?.view(forReactTag: tag) as? RCTScrollView
rctScrollView = view
}

Expand Down

0 comments on commit b8d79c5

Please sign in to comment.