fix iOS crash when closing the app with the SheetView open
This commit is contained in:
@@ -99,6 +99,8 @@ class SheetView: ExpoView, UISheetPresentationControllerDelegate {
|
|||||||
index: Int
|
index: Int
|
||||||
) {
|
) {
|
||||||
touchHandler?.detach(from: childComponentView)
|
touchHandler?.detach(from: childComponentView)
|
||||||
|
|
||||||
|
childComponentView.removeFromSuperview()
|
||||||
if self.innerView === childComponentView {
|
if self.innerView === childComponentView {
|
||||||
self.innerView = nil
|
self.innerView = nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user