We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e44c6e commit cab917bCopy full SHA for cab917b
ios/ReactTestApp/ContentView.swift
@@ -49,6 +49,21 @@ final class ContentViewController: UITableViewController {
49
fatalError("\(#function) has not been implemented")
50
}
51
52
+ // MARK: - UIResponder overrides
53
+
54
+ override public func motionEnded(_: UIEvent.EventSubtype, with event: UIEvent?) {
55
+ guard event?.subtype == .motionShake,
56
+ let bridge = reactInstance.bridge,
57
+ let settings = bridge.module(for: RCTDevSettings.self) as? RCTDevSettings,
58
+ settings.isShakeToShowDevMenuEnabled,
59
+ let devMenu = bridge.module(for: RCTDevMenu.self) as? RCTDevMenu
60
+ else {
61
+ return
62
+ }
63
64
+ devMenu.show()
65
66
67
// MARK: - UIViewController overrides
68
69
override public func viewDidLoad() {
0 commit comments