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

    Type Alias MentionsInputProps<T>

    MentionsInputProps: Omit<TextInputProps, "value" | "onChangeText"> & {
        deleteMode?: DeleteMode;
        enabled?: boolean;
        mentions: Mention<T>[];
        mentionStyle?: TextStyle;
        onChangeText: (text: string) => void;
        onMentionsChange: (mentions: Mention<T>[]) => void;
        renderSuggestions?: (props: SuggestionRenderProps<T>) => React.ReactNode;
        trigger?: string;
        value: string;
    }

    Props for the MentionsInput component.

    Type Parameters

    • T = unknown

      Optional custom data type for mention metadata

    Type Declaration

    • OptionaldeleteMode?: DeleteMode

      Controls how mentions behave when edited (default: 'default')

    • Optionalenabled?: boolean

      Whether mention detection is enabled (default: true)

    • mentions: Mention<T>[]

      Current list of mentions (controlled)

    • OptionalmentionStyle?: TextStyle

      Style to apply to mention text

    • onChangeText: (text: string) => void

      Callback when text changes

    • onMentionsChange: (mentions: Mention<T>[]) => void

      Callback when mentions change

    • OptionalrenderSuggestions?: (props: SuggestionRenderProps<T>) => React.ReactNode

      Render function for the suggestions popup

    • Optionaltrigger?: string

      Trigger character for mentions (default: "@")

    • value: string

      Current text value (controlled)