react-native-mentions icon indicating copy to clipboard operation
react-native-mentions copied to clipboard

Predictive text interferes with suggestions

Open njt1982 opened this issue 6 years ago • 1 comments

So I type @m and get this...

image

If I select the user martin, this happens: image

njt1982 avatar Oct 09 '17 18:10 njt1982

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.

njt1982 avatar Oct 09 '17 18:10 njt1982