react-native-mentions
react-native-mentions copied to clipboard
Predictive text interferes with suggestions
So I type @m
and get this...
If I select the user martin
, this happens:
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.