MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / dismissSoftInput

Function dismissSoftInput

packages/core/utils/index.ios.ts:111–116  ·  view source on GitHub ↗
(nativeView?: UIView)

Source from the content-addressed store, hash-verified

109export const ad = 0;
110
111export function dismissSoftInput(nativeView?: UIView): void {
112 if (nativeView instanceof UIView && !nativeView.isFirstResponder) {
113 return;
114 }
115 UIApplication.sharedApplication.sendActionToFromForEvent('resignFirstResponder', null, null, null);
116}
117
118export function dismissKeyboard() {
119 dismissSoftInput();

Callers 1

dismissKeyboardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected