-
Notifications
You must be signed in to change notification settings - Fork 85
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
How to make custom mention value #80
Comments
… pattern Wrap trigger in regex with {}, so we can now use multiple characters. Add support for custom trigger pattern. BREAKING CHANGES New renames: `PartType` -> `Config` `isTriggerPartType` -> `isTriggerConfig` `getMentionValue` -> `getTriggerValue` `replaceMentionValues` -> `replaceTriggerValues` Change default trigger regex and mention value from `@[David Tabaka](123)` to `{@}[David Tabaka](123)`. Useful for #38, #51, #52, #80.
I'm glad to say that v3 release is coming with few core improvements. One of the new features is full support of multiple characters trigger and custom regex pattern for mentions. You can find examples of using new v3 release here: https://github.com/dabakovich/react-native-controlled-mentions/blob/3.0/example/mentions-functional-component.tsx To test
|
@dabakovich Hi I have an android bug with a custom mention value(maybe it can be on ios, but I didn't check). Firstly textStyle doesn't work in triggersConfig(first video). Also when I add patternsConfig, input deletes first letter by itself and RenderSuggestions component doesn't work properly(second video). How can I apply styles to triggering text by using the last release react-native-controlled-mentions? Screen.Recording.2022-12-19.at.13.18.04.movScreen.Recording.2022-12-19.at.13.15.16.movMy code(In component is a lot of code I cut the main part):
Also my react-native info: npmGlobalPackages: |
Hey @WtfLaika! Thanks for your detailed feedback. Is your question still actual? |
@David Tabaka to @[123](David Tabaka)
The text was updated successfully, but these errors were encountered: