1 | import * as React from 'react';
|
2 | import { StyleProp, ViewStyle, GestureResponderEvent } from 'react-native';
|
3 | import type { IconSource } from '../Icon';
|
4 | declare type Props = {
|
5 | |
6 |
|
7 |
|
8 | icon: IconSource;
|
9 | |
10 |
|
11 |
|
12 | size?: number;
|
13 | |
14 |
|
15 |
|
16 | color?: string;
|
17 | |
18 |
|
19 |
|
20 | disabled?: boolean;
|
21 | |
22 |
|
23 |
|
24 | accessibilityLabel?: string;
|
25 | |
26 |
|
27 |
|
28 | onPress?: (value?: GestureResponderEvent | string) => void;
|
29 | |
30 |
|
31 |
|
32 | value?: string;
|
33 | |
34 |
|
35 |
|
36 | status?: 'checked' | 'unchecked';
|
37 | style?: StyleProp<ViewStyle>;
|
38 | |
39 |
|
40 |
|
41 | theme: ReactNativePaper.Theme;
|
42 | };
|
43 | declare const _default: React.ComponentType<Pick<Props, "style" | "color" | "size" | "onPress" | "accessibilityLabel" | "icon" | "value" | "disabled" | "status"> & {
|
44 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
45 | }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & (({ icon, size, theme, accessibilityLabel, disabled, style, value, status, onPress, ...rest }: Props) => JSX.Element), {}>;
|
46 | export default _default;
|
47 | declare const ToggleButtonWithTheme: React.ComponentType<Pick<Props, "style" | "color" | "size" | "onPress" | "accessibilityLabel" | "icon" | "value" | "disabled" | "status"> & {
|
48 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
49 | }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & (({ icon, size, theme, accessibilityLabel, disabled, style, value, status, onPress, ...rest }: Props) => JSX.Element), {}>;
|
50 | export { ToggleButtonWithTheme as ToggleButton };
|
51 |
|
\ | No newline at end of file |