1 // Copyright 2015-present 650 Industries. All rights reserved. 2 3 @objc(DevMenuModule) 4 open class DevMenuModule: NSObject, RCTBridgeModule { 5 public static func moduleName() -> String! { 6 return "ExpoDevMenu" 7 } 8 9 public static func requiresMainQueueSetup() -> Bool { 10 return true 11 } 12 13 // MARK: JavaScript API 14 15 @objc 16 func openMenu() { 17 DevMenuManager.shared.openMenu() 18 } 19 20 @objc 21 func openSettings() { 22 DevMenuManager.shared.openMenu("Settings") 23 } 24 25 @objc 26 func openProfile() { 27 DevMenuManager.shared.openMenu("Profile") 28 } 29 } 30