react-native-web-refresh-control
react-native-web-refresh-control copied to clipboard
[Enhancement]: TypeScript Support
Hi:
Just a simple feature request for TypeScript support.
Thanks.
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
Can I contribute to this package and add types?
@landonwjohnson sure!
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;
}