Skip to content
New issue

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

Custom Keyboard Not Reactive #51

Open
17Amir17 opened this issue Feb 18, 2024 · 0 comments
Open

Custom Keyboard Not Reactive #51

17Amir17 opened this issue Feb 18, 2024 · 0 comments

Comments

@17Amir17
Copy link
Collaborator

What is Expected

The custom keyboard component (any keyboard created with CustomKeyboardExtension), should be reactive and should unmount when the keyboard is closed.

What is Happening

Currently we get reactive data in the custom keyboard from the useRemoteEditorBridge hook which basically listens for changes on the editor and stops listening when unmounted. When the the keyboard is closed the keyboard's root view is removed from the view on the native side, but is not unmounted on the react side. So all of the JS is still alive there and it still listens for changes on the editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant