Fix iPad split view (#8199)
* Fix iPad split view * remove unused type def
This commit is contained in:
parent
20e0638a1f
commit
991cecdeb3
2 changed files with 4 additions and 10 deletions
|
|
@ -5,9 +5,10 @@ import React
|
|||
@objc public weak var delegate: RNUtilsDelegate? = nil
|
||||
|
||||
deinit {
|
||||
NotificationCenter.default.removeObserver(self,
|
||||
name: NSNotification.Name.RCTUserInterfaceStyleDidChange,
|
||||
object: nil)
|
||||
DispatchQueue.main.async {
|
||||
guard let w = UIApplication.shared.delegate?.window, let window = w else { return }
|
||||
window.removeObserver(self, forKeyPath: "frame")
|
||||
}
|
||||
}
|
||||
|
||||
func getSharedDirectory() -> URL? {
|
||||
|
|
|
|||
7
types/global/device.d.ts
vendored
7
types/global/device.d.ts
vendored
|
|
@ -1,7 +0,0 @@
|
|||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
type SplitViewResult = {
|
||||
isSplitView: boolean;
|
||||
isTablet: boolean;
|
||||
}
|
||||
Loading…
Reference in a new issue