@types/react-native-highlight-words
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

Credits

These definitions were written by Ivan Stelmakh.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-highlight-words

Weekly Downloads

1,294

Version

1.0.6

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • types