Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant