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

Predictive text interferes with suggestions #15

Open
njt1982 opened this issue Oct 9, 2017 · 1 comment
Open

Predictive text interferes with suggestions #15

njt1982 opened this issue Oct 9, 2017 · 1 comment

Comments

@njt1982
Copy link

njt1982 commented Oct 9, 2017

So I type @m and get this...

image

If I select the user martin, this happens:
image

@njt1982
Copy link
Author

njt1982 commented Oct 9, 2017

I have worked around this by setting a state to toggle the autoCorrect prop on the TextInput child component.

When a suggestion callback is triggered, it disables the autocorrect state. In my renderSuggestionsRow, when an item is pressed, before executing the stopTracking callback, I reset the state to TRUE.

This mostly works, however if the suggestions are cancelled/stopped outside of pressing a button, then autoCorrect is never re-enabled.

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