react-native-navigation-search-bar icon indicating copy to clipboard operation
react-native-navigation-search-bar copied to clipboard

Typings

Open trajano opened this issue 4 years ago • 1 comments
trafficstars

Are there TypeScript typings available?

Something like this (just took a stab)

declare module 'react-native-navigation-search-bar' {
  export type RNNSearchBarProps = {
    search?: string;
    componentId: string;
    statusBarHeight: number;
    placeholder?: string;
    onChangeText?: (value: string) => void;
    onSearchButtonPress?: () => void;
    onFocus?: () => void;
    onBlur?: () => void;
    onClear?: () => void;
    onCancel?: () => void;
  };
 declare class RNNSearchBar extends Component<RNNSearchBarProps> {}
}

trajano avatar Oct 22 '21 20:10 trajano

@trajano Want to make a PR? Thanks

lukebrandonfarrell avatar Oct 24 '21 20:10 lukebrandonfarrell