(nativeView?: UIView)
| 109 | export const ad = 0; |
| 110 | |
| 111 | export 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 | |
| 118 | export function dismissKeyboard() { |
| 119 | dismissSoftInput(); |