softlofy-rn-components
Version:
A collection of commonly used components on React Native project developed by [Softlofy](https://softlofy.com/).
18 lines (15 loc) • 449 B
TypeScript
import {TWidth} from '../../types/widthType';
export type TOnPress = ((event: GestureResponderEvent) => void) | undefined;
export type TCommonButton = {
onPress?: ((event: GestureResponderEvent) => void) | undefined;
title?: string;
disabled?: boolean;
width?: TWidth;
flex?: number;
};
export type TPartialButton = {
backgroundColor?: string;
textColor?: string;
icon?: React.ReactNode;
themeColor?: string;
};