Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mobile): support Duo in the shared iOS app #12648

Mergedjuliusmarmingemerged 21 commits intomain fromrefs/pull/12648/headmerged by juliusmarminge View on GitHub

Showing 42 changed files with 6 additions and 0 deletions (loading 38).

x
0 of 42 viewed, 42 left
0 additions and 0 deletionsapps/mobile/deps/react-native-screens-5.0.0-t3.7.tgzDeleted

Binary file not shown.

0 additions and 0 deletionsapps/mobile/deps/react-native-screens-5.0.0-t3.8.tgzAdded
View file

Binary file not shown.

6 additions and 0 deletionsapps/mobile/modules/t3-native-controls/ios/T3KeyboardCommandsModule.swiftModified
View file
@@ -17,9 +17,13 @@
public final class T3KeyboardCommandsView: ExpoView {
let onCommand = EventDispatcher()
private var enabledCommands = Set<String>()
+ private let shortcutInputView = UIView(frame: .zero)
​
public override var canBecomeFirstResponder: Bool { true }
​
+ // This responder handles hardware shortcuts, so reclaiming it must not show a software keyboard.
+ public override var inputView: UIView? { shortcutInputView }
+​
public override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
if action == #selector(openCommandPalette) || action == #selector(paletteNext) || action == #selector(palettePrevious) || action == #selector(paletteDismiss),
let input = window?.t3FirstResponder as? UITextInput,
@@ -89,6 +93,8 @@
​
public required init(appContext: AppContext? = nil) {
super.init(appContext: appContext)
+ inputAssistantItem.leadingBarButtonGroups = []
+ inputAssistantItem.trailingBarButtonGroups = []
NotificationCenter.default.addObserver(
self,
selector: #selector(reclaimFirstResponderIfAvailable),