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

    Function findAffectedMention

    • Find which mention was affected by a text change. Compares old and new text to identify deletion/modification.

      Type Parameters

      • T

      Parameters

      • prevText: string

        Previous text

      • newText: string

        New text

      • mentions: Mention<T>[]

        List of mentions to check

      Returns Mention<T> | null

      The affected mention, or null if no mention was affected