react-native-figma-squircle
Version:
Figma-flavored squircles for React Native
23 lines • 843 B
TypeScript
import * as React from 'react';
import { ViewProps } from 'react-native';
import { PropsWithChildren } from 'react';
import { Color } from 'react-native-svg';
import { getSvgPath } from 'figma-squircle';
interface SquircleParams {
cornerRadius?: number;
topLeftCornerRadius?: number;
topRightCornerRadius?: number;
bottomRightCornerRadius?: number;
bottomLeftCornerRadius?: number;
cornerSmoothing: number;
fillColor?: Color;
strokeColor?: Color;
strokeWidth?: number;
}
interface SquircleViewProps extends ViewProps {
squircleParams: SquircleParams;
}
declare function SquircleView({ squircleParams, children, ...rest }: PropsWithChildren<SquircleViewProps>): React.JSX.Element;
export { SquircleView, getSvgPath };
export type { SquircleParams, SquircleViewProps };
//# sourceMappingURL=index.d.ts.map