Installation
npm install --save @types/react-native-highlight-words
Summary
This package contains type definitions for react-native-highlight-words (https://github.com/clauderic/react-native-highlight-words).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-highlight-words.
index.d.ts
import * as React from "react";
import { TextProps } from "react-native";
export interface HighlighterProps extends TextProps {
autoEscape?: boolean | undefined;
highlightStyle?: TextProps["style"] | undefined;
sanitize?: ((text: string) => string) | undefined;
searchWords: string[];
style?: TextProps["style"] | undefined;
textToHighlight: string;
}
export default class Highlighter extends React.Component<HighlighterProps> {}
Additional Details
- Last updated: Thu, 21 Dec 2023 19:06:51 GMT
- Dependencies: @types/react, react-native
Credits
These definitions were written by Ivan Stelmakh.