Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Trigger characters #12

Open
njt1982 opened this issue Oct 5, 2017 · 5 comments
Open

Multiple Trigger characters #12

njt1982 opened this issue Oct 5, 2017 · 5 comments

Comments

@njt1982
Copy link

njt1982 commented Oct 5, 2017

Can we allow multiple triggers?

For our use case, we use @ to target users and # to target channels. Different autocomplete values... As trigger is a string, it cannot do this at the moment.

It looks like identifyKeyword would be compatible with that string being a regex pattern (eg [@#] or (@|#)) but onChangeText does a literal last character comparison...

What do you think?

@Ethaan
Copy link

Ethaan commented Oct 16, 2017

Did you get something on this?

@MartinCamen
Copy link
Contributor

You can just split the trigger string to an array, and go from there. If I get the time I can create a PR for this, if no one else beats me to it.

@theohdv
Copy link

theohdv commented Jan 19, 2018

Hello, is someone working on this feature?

Because if not I'm OK to do it.

@njt1982
Copy link
Author

njt1982 commented Jan 19, 2018

@theohdv I've not done anything... Would be a useful feature!

@ericjoy94
Copy link

Is the feature added in react-native-mentions to allow multiple triggers. for example on '@' or '#' ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants