@@ -371,7 +371,7 @@ Unique id for each suggestion.
371
371
372
372
` name: string `
373
373
374
- Name that will be shown in ` MentionInput ` when user will select the suggestion.
374
+ Name that will be shown in your ` TextInput ` when user will select the suggestion.
375
375
376
376
### Type ` TriggerData `
377
377
@@ -400,7 +400,7 @@ The extracted id - `123`
400
400
/({([^{^}]*)}\[([^[]*)]\(([^(^)]*)\))/i
401
401
```
402
402
403
- ### ` MentionInput ` component props
403
+ ### Deprecated ` MentionInput ` component props
404
404
405
405
If you prefer to use class component without hooks the ` MentionInput ` is for you.
406
406
@@ -420,14 +420,14 @@ For detailed migration instructions from v2 to v3, please see [MIGRATION.md](./M
420
420
421
421
## Parsing Mention's Value
422
422
423
- You can import RegEx that is using in the component and then extract all your mentions
424
- from ` MentionInput ` 's value using your own logic.
423
+ You can import RegEx that is using in the component and then extract all mentions
424
+ from ` textValue ` using your own logic.
425
425
426
426
``` ts
427
427
import { triggerRegEx } from ' react-native-controlled-mentions' ;
428
428
```
429
429
430
- Or you can use ` replaceTriggerValues ` helper to replace all mentions from ` MentionInput ` 's input using
430
+ Or you can use ` replaceTriggerValues ` helper to replace all mentions from ` textValue ` using
431
431
your replacer function that receives [ TriggerData] ( #type-triggerdata ) type and returns string.
432
432
433
433
``` ts
@@ -485,8 +485,8 @@ const renderPart = (part: Part, index: number) => {
485
485
/**
486
486
* Value renderer. Parsing value to parts array and then mapping the array using 'renderPart'
487
487
*
488
- * @param value - value from MentionInput
489
- * @param configs - configs array that you providing to MentionInput
488
+ * @param value - `textValue` that you're getting from the `useState` hook
489
+ * @param configs - configs array that you providing to the `useMentions` hook
490
490
*/
491
491
const renderValue: FC = (value : string , configs : Config []) => {
492
492
const { parts } = parseValue (value , configs );
0 commit comments