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

Callback is not working; suggestions do not get updated when I type #35

Open
thlee1122 opened this issue Nov 4, 2018 · 2 comments
Open

Comments

@thlee1122
Copy link

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

image

Here is my code for MentionsTextInput:
image

Here is my callback function:
image

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?

@mrazadar
Copy link

Hey just published a new react-native-mentions package. Check it out.

@dabakovich
Copy link

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

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

3 participants