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

    Function getUpdatedMentions

    • Updates mention positions based on current text. Removes mentions whose text no longer exists in the content.

      Type Parameters

      • T = unknown

      Parameters

      • mentions: Mention<T>[]

        List of mentions to update

      • text: string

        Current text to find positions in

      Returns Mention<T>[]

      Updated list of mentions with correct positions