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

    Type Alias Mention<T>

    Represents a mention in the text with position tracking.

    type Mention<T = unknown> = {
        data?: T;
        displayText: string;
        end: number;
        id: string | number;
        start: number;
    }

    Type Parameters

    • T = unknown

      Optional custom data type for additional mention metadata

    Index

    Properties

    data?: T

    Optional custom data attached to the mention

    displayText: string

    The display text shown for this mention (e.g., "@John Doe")

    end: number

    End position in the text (exclusive)

    id: string | number

    Unique identifier for the mention

    start: number

    Start position in the text (inclusive)