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
934 stars 60 forks source link

[Question] KeyboardManager.resignFirstResponder() #83

Closed mydesweb closed 2 years ago

mydesweb commented 2 years ago

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

douglasjunior commented 2 years ago

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

douglasjunior commented 2 years ago

And here is the code used inside the IQKeyboardManager.

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