rn-inkpad
Version:
<img src="https://res.cloudinary.com/fercloudinary/image/upload/v1715452841/packages/inkpad-banner_acl0xl.png" />
39 lines (33 loc) • 886 B
text/typescript
import {StyleProp, TextStyle} from 'react-native';
import {IconName} from './iconType';
export type ActionSheet = {
text: string;
icon?: IconName;
iconColor?: string;
textStyle?: StyleProp<TextStyle>;
onPress: () => void;
};
export type ActionSheetTheme = {
appearance?: Appearances;
backgroundColor?: string;
buttonColor?: string;
closeBackgroundColor?: string;
closeIconColor?: string;
separatorColor?: string;
textColor?: string;
theme?: ValidTheme;
};
export type ActionSheetProps = {
actions?: ActionSheet[];
cancelText?: string;
description?: string;
showCancelButton?: boolean;
showCloseButton?: boolean;
showIconOnIos?: boolean;
theme?: ActionSheetTheme;
title?: string;
visible: boolean;
setVisible: (visible: boolean) => void;
};
export type ValidTheme = 'cupertino' | 'material';
export type Appearances = 'light' | 'dark';