Open thlee1122 opened 6 years ago
Hey just published a new react-native-mentions package. Check it out.
You can try a react-native-controlled-mentions
that is not rich in configuration yet but enough stable for use in projects.
https://www.npmjs.com/package/react-native-controlled-mentions
Hello,
I am having an issue with the callback function. I have
trigger={'#'}
so when I type # then it does show me the suggestions. However, suggestions does not get updated with matching suggestions when I continue typing.Below is the example of what I mean
Here is my code for
MentionsTextInput
:Here is my callback function:
I am actually importing sample hashTag data from local json file through
import * as hashTagData from '../data/sampleHashTagData.json';
And in the
componentDidMount()
, I am setting that data to the state:componentDidMount() { this.setState({ hashTags: hashTagData.results, }); }
Could you anyone please help me solve this issue?