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

    Function applyWholeDeletion

    • Handle 'whole' deletion - remove entire mention text.

      Type Parameters

      • T

      Parameters

      • newText: string

        The text after the user's edit (before we apply whole deletion)

      • affectedMention: Mention<T>

        The mention that was partially deleted

      • mentions: Mention<T>[]

        All current mentions

      • prevText: string

        The previous text (before user's edit)

      Returns { mentions: Mention<T>[]; text: string }

      New text and mentions with the entire mention removed