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

Bug: Incorrect types #2

Description

@koenvg

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!

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