We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
By exporting the style type it will be easier for consumers to build the correct prop when using the library with typescript.
eg add
export type GradientBorderViewStyle = StyleProp< GradientBorderViewProps & {paddingLeft?: number, paddingRight?: number, paddingTop?: number, paddingBottom?: number, padding?: number} >
Can use internally as needed eg:
export default function GradientBorderView({ gradientProps, ...props }: Omit<ViewProps, 'style'> & { style?: GradientBorderViewStyle } & RequiredGradientBorderProps ) {
The text was updated successfully, but these errors were encountered:
For anyone who requires the type while this isn't exported you can use:
type GradientBorderViewStyle = Parameters<typeof GradientBorderView>[0]["style"];
Sorry, something went wrong.
No branches or pull requests
By exporting the style type it will be easier for consumers to build the correct prop when using the library with typescript.
eg add
Can use internally as needed eg:
The text was updated successfully, but these errors were encountered: