douglasjunior / react-native-keyboard-manager

⚛ Library to prevent issues of keyboard sliding up and cover inputs on React-Native iOS projects.
https://www.npmjs.com/package/react-native-keyboard-manager
MIT License
970 stars 59 forks source link

[Question] KeyboardManager.resignFirstResponder() #83

Closed mydesweb closed 2 years ago

mydesweb commented 3 years ago

When to use KeyboardManager.resignFirstResponder() ? I can't find any documentation about it. Thanks.

douglasjunior commented 3 years ago

This is an iOS specific method https://developer.apple.com/documentation/uikit/uiresponder/1621097-resignfirstresponder

douglasjunior commented 3 years ago

And here is the code used inside the IQKeyboardManager.

https://github.com/hackiftekhar/IQKeyboardManager/blob/641ef9f19960a8ecdf22bc89290d0ba56ed37826/IQKeyboardManagerSwift/IQKeyboardManager.swift#L203-L218