Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typings #4

Open
trajano opened this issue Oct 22, 2021 · 1 comment
Open

Typings #4

trajano opened this issue Oct 22, 2021 · 1 comment

Comments

@trajano
Copy link

trajano commented Oct 22, 2021

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> {}
}
@lukebrandonfarrell
Copy link
Owner

@trajano Want to make a PR? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants