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

    Type Alias UseMentionInsertionOptions<T>

    Options for the useMentionInsertion hook.

    type UseMentionInsertionOptions<T = unknown> = {
        currentWord: WordWithPosition | null;
        mentions: Mention<T>[];
        trigger?: string;
        value: string;
    }

    Type Parameters

    • T = unknown

      Optional custom data type for mention metadata

    Index

    Properties

    currentWord: WordWithPosition | null

    Current word at cursor position (from useMentionsInput)

    mentions: Mention<T>[]

    Current list of mentions

    trigger?: string

    Trigger character for mentions (default: "@")

    value: string

    Current text value