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

[Enhancement]: TypeScript Support #18

Open
ArnieGA opened this issue Mar 8, 2024 · 4 comments
Open

[Enhancement]: TypeScript Support #18

ArnieGA opened this issue Mar 8, 2024 · 4 comments

Comments

@ArnieGA
Copy link

ArnieGA commented Mar 8, 2024

Hi:

Just a simple feature request for TypeScript support.

Thanks.

@NiciusB
Copy link
Owner

NiciusB commented Mar 10, 2024

Hi Arnie!

Thanks for the suggestion. I agree that I should add types, but don't really have an usecase for this package anyways so it probably won't happen too soon.
If someone were to make a PR I would hapilly review and merge it

@landonwjohnson
Copy link

Can I contribute to this package and add types?

@NiciusB
Copy link
Owner

NiciusB commented Apr 7, 2024

@landonwjohnson sure!

@jerone
Copy link

jerone commented May 14, 2024

I was able to get TypeScript typing support working with the following code:

declare module "react-native-web-refresh-control" {
  export {
    RefreshControl,
    RefreshControlProps,
    RefreshControlPropsAndroid,
    RefreshControlPropsIOS,
  } from "react-native";
  export function patchFlatListProps(props: RefreshControlProps): void;
}

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

4 participants