@sanar/react-native-highlight-text
Version:
A React Native port of react-native-highlight-words. This component is used to highlight words within a larger body of text.
11 lines (10 loc) • 552 B
TypeScript
import React from 'react';
import { TextProps, TextStyle } from 'react-native';
import { FindAllArgs } from 'highlight-words-core';
interface HighlightTextProps extends FindAllArgs, TextProps {
highlightStyle?: TextStyle;
highlightComponent?: React.ComponentType<TextProps>;
textComponent?: React.ComponentType<TextProps>;
}
export default function HighlightText({ autoEscape, caseSensitive, sanitize, searchWords, textToHighlight, highlightStyle, highlightComponent, textComponent, ...props }: HighlightTextProps): JSX.Element;
export {};