Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Bug: Incorrect types #2

Open
koenvg opened this issue Apr 4, 2022 · 0 comments
Open

Bug: Incorrect types #2

koenvg opened this issue Apr 4, 2022 · 0 comments

Comments

@koenvg
Copy link

koenvg commented Apr 4, 2022

Hello,

I noticed that the type information for the react component is not correct.
It is now a function that returns the react component.

Current version:

declare const Neumorphism: () => ((props: {
    lightColor?: string | undefined;
    darkColor?: string | undefined;
    radius?: number | undefined;
    shapeType?: "flat" | "pressed" | "basin" | undefined;
    style?: import("react-native").ViewStyle | undefined;
    disabled?: boolean | undefined;
    children?: import("react").ReactNode;
}) => JSX.Element) | typeof View;

What I think it should be:

declare const Neumorphism: (props: {
    lightColor?: string | undefined;
    darkColor?: string | undefined;
    radius?: number | undefined;
    shapeType?: "flat" | "pressed" | "basin" | undefined;
    style?: import("react-native").ViewStyle | undefined;
    disabled?: boolean | undefined;
    children?: import("react").ReactNode;
}) => JSX.Element;

Thanks for creating this package!

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

No branches or pull requests

1 participant