You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: add ability for defined pattern list custom style - #13
Added `partTypes` property for defining list of possible mention types or patterns for parsing.
Updated README.md.
Added tests for new method for parsing value.
BREAKING CHANGES: `mentionTypes` renamed to `partTypes`. `MentionType` changed to `PartType` which can be either `MentionPartType` or `PatternPartType`. New types defined in README.md.
Replace your [TextInput](https://reactnative.dev/docs/textinput) by [MentionInput](#mentioninput-component-props) component and add the `mentionTypes` property where you can define what mention types you want to support. It takes an array of [MentionType](#mentiontype-type-props) objects.
37
+
Replace your [TextInput](https://reactnative.dev/docs/textinput) by [MentionInput](#mentioninput-component-props) component and add the `partTypes` property where you can define what mention or pattern types you want to support. It takes an array of [PartType](#parttype-type) objects.
38
38
39
39
```tsx
40
40
<Mentions
41
41
value={value}
42
42
onChange={setValue}
43
43
44
-
mentionTypes={[
44
+
partTypes={[
45
45
{
46
46
trigger: '@', // Should be a single character like '@' or '#'
0 commit comments