We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, this nifty plugin is great.
The text was updated successfully, but these errors were encountered:
+1
Any screen which listens to these keyboard events throws a warning in development.
Sorry, something went wrong.
Ended doing my own KeyboardListener file
import React, {useEffect} from 'react'; import {Keyboard} from 'react-native'; const KeyboardListener: React.FC<{ onDidShow: (e: any) => void; onDidHide: (e: any) => void; }> = ({onDidShow, onDidHide}) => { useEffect(() => { if (onDidShow) Keyboard.addListener('keyboardDidShow', onDidShow); if (onDidHide) Keyboard.addListener('keyboardDidHide', onDidHide); return () => { Keyboard.removeListener('keyboardDidShow', onDidShow); Keyboard.removeListener('keyboardDidHide', onDidHide); }; }, []); return null; }; export default KeyboardListener;
and using like:
<KeyboardListener onDidShow={() => setKeyboardOpen(true)} onDidHide={() => setKeyboardOpen(false)} />
I submitted a pull request but I guess he has not updated it. Here is the link to the complete remodeled version: https://github.com/aboss123/react-native-keyboard-listener/blob/patch-1/index.js
No branches or pull requests
Hello, this nifty plugin is great.
The text was updated successfully, but these errors were encountered: