1 | import * as React from 'react';
|
2 | import { View, StyleProp, ViewStyle } from 'react-native';
|
3 | import { IconSource } from '../Icon';
|
4 | declare type Props = React.ComponentPropsWithRef<typeof View> & {
|
5 | |
6 |
|
7 |
|
8 | label: string;
|
9 | |
10 |
|
11 |
|
12 | icon?: IconSource;
|
13 | |
14 |
|
15 |
|
16 | active?: boolean;
|
17 | |
18 |
|
19 |
|
20 | onPress?: () => void;
|
21 | |
22 |
|
23 |
|
24 | accessibilityLabel?: string;
|
25 | |
26 |
|
27 |
|
28 | right?: (props: {
|
29 | color: string;
|
30 | }) => React.ReactNode;
|
31 | style?: StyleProp<ViewStyle>;
|
32 | |
33 |
|
34 |
|
35 | theme: ReactNativePaper.Theme;
|
36 | };
|
37 | declare const _default: React.ComponentType<Pick<import("react-native").ViewProps & React.RefAttributes<View> & {
|
38 | |
39 |
|
40 |
|
41 | label: string;
|
42 | |
43 |
|
44 |
|
45 | icon?: IconSource | undefined;
|
46 | |
47 |
|
48 |
|
49 | active?: boolean | undefined;
|
50 | |
51 |
|
52 |
|
53 | onPress?: (() => void) | undefined;
|
54 | /**
|
55 | * Accessibility label for the button. This is read by the screen reader when the user taps the button.
|
56 | */
|
57 | accessibilityLabel?: string | undefined;
|
58 | /**
|
59 | * Callback which returns a React element to display on the right side. For instance a Badge.
|
60 | */
|
61 | right?: ((props: {
|
62 | color: string;
|
63 | }) => React.ReactNode) | undefined;
|
64 | style?: StyleProp<ViewStyle>;
|
65 | /**
|
66 | * @optional
|
67 | */
|
68 | theme: ReactNativePaper.Theme;
|
69 | }, "label" | "onPress" | "icon" | "right" | keyof import("react-native").ViewProps | keyof React.RefAttributes<View> | "active"> & {
|
70 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
71 | }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").ViewProps & React.RefAttributes<View> & {
|
72 | /**
|
73 | * The label text of the item.
|
74 | */
|
75 | label: string;
|
76 | /**
|
77 | * Icon to display for the `DrawerItem`.
|
78 | */
|
79 | icon?: IconSource | undefined;
|
80 | /**
|
81 | * Whether to highlight the drawer item as active.
|
82 | */
|
83 | active?: boolean | undefined;
|
84 | /**
|
85 | * Function to execute on press.
|
86 | */
|
87 | onPress?: (() => void) | undefined;
|
88 | /**
|
89 | * Accessibility label for the button. This is read by the screen reader when the user taps the button.
|
90 | */
|
91 | accessibilityLabel?: string | undefined;
|
92 | /**
|
93 | * Callback which returns a React element to display on the right side. For instance a Badge.
|
94 | */
|
95 | right?: ((props: {
|
96 | color: string;
|
97 | }) => React.ReactNode) | undefined;
|
98 | style?: StyleProp<ViewStyle>;
|
99 | /**
|
100 | * @optional
|
101 | */
|
102 | theme: ReactNativePaper.Theme;
|
103 | }> & {
|
104 | ({ icon, label, active, theme, style, onPress, accessibilityLabel, right, ...rest }: Props): JSX.Element;
|
105 | displayName: string;
|
106 | }, {}>;
|
107 | export default _default;
|
108 |
|
\ | No newline at end of file |