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

    Function validateMentions

    • Validates and filters mentions, removing any that have been edited or deleted. A mention is considered valid if its displayText matches the text at its position.

      Type Parameters

      • T = unknown

      Parameters

      • mentions: Mention<T>[]

        List of mentions to validate

      • text: string

        Current text to validate against

      Returns Mention<T>[]

      List of valid mentions