react-native-border
Version:
Easily create stylish, image-based borders in React Native components
21 lines • 764 B
TypeScript
import { type ReactNode } from 'react';
import type { StyleProp, ViewStyle, ImageSourcePropType } from 'react-native';
type RotationDegrees = {
top?: string;
bottom?: string;
left?: string;
right?: string;
};
interface BorderBoxProps {
icon: ImageSourcePropType;
iconWidth?: number;
iconHeight?: number;
containerStyle?: StyleProp<ViewStyle>;
children?: ReactNode;
horizontalPadding?: number;
verticalPadding?: number;
rotationDegrees?: RotationDegrees;
}
declare const BorderBox: ({ icon, iconWidth, iconHeight, containerStyle, children, horizontalPadding, verticalPadding, rotationDegrees, }: BorderBoxProps) => import("react/jsx-runtime").JSX.Element;
export default BorderBox;
//# sourceMappingURL=index.d.ts.map