Skip to content

[Enhancement]: TypeScript Support #18

Open

Description

@ArnieGA

Hi:

Just a simple feature request for TypeScript support.

Thanks.

Activity

  1. NiciusB commented on Mar 10, 2024

    @NiciusB
    Owner

    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

  2. landonwjohnson commented on Apr 5, 2024

    @landonwjohnson

    Can I contribute to this package and add types?

  3. NiciusB commented on Apr 7, 2024

    @NiciusB
    Owner
  4. jerone commented on May 14, 2024

    @jerone

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions