react-native-mentions-input
    Preparing search index...

    Type Alias UseMentionInsertionReturn<T>

    Return type for the useMentionInsertion hook.

    type UseMentionInsertionReturn<T = unknown> = {
        insertMention: (
            suggestion: MentionSuggestion<T>,
        ) => { mentions: Mention<T>[]; selection: Selection; text: string };
    }

    Type Parameters

    • T = unknown

      Optional custom data type for mention metadata

    Index

    Properties

    Properties

    insertMention: (
        suggestion: MentionSuggestion<T>,
    ) => { mentions: Mention<T>[]; selection: Selection; text: string }

    Insert a mention at the current position