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

    Type Alias SuggestionRenderProps<T>

    Props for the suggestion rendering function.

    type SuggestionRenderProps<T = unknown> = {
        onDismiss: () => void;
        onSelect: (suggestion: MentionSuggestion<T>) => void;
        query: string;
    }

    Type Parameters

    • T = unknown

      Optional custom data type for suggestion metadata

    Index

    Properties

    onDismiss: () => void

    Callback to dismiss the suggestions popup

    onSelect: (suggestion: MentionSuggestion<T>) => void

    Callback to select a suggestion and insert it as a mention

    query: string

    The current search query (text after the trigger character)