UNPKG

3.12 kBTypeScriptView Raw
1import * as React from 'react';
2import { View, ViewStyle, StyleProp } from 'react-native';
3declare type Props = Partial<React.ComponentPropsWithRef<typeof View>> & {
4 /**
5 * Whether the background color is a dark color. A dark appbar will render light text and vice-versa.
6 */
7 dark?: boolean;
8 /**
9 * Content of the `Appbar`.
10 */
11 children: React.ReactNode;
12 /**
13 * @optional
14 */
15 theme: ReactNativePaper.Theme;
16 style?: StyleProp<ViewStyle>;
17};
18export declare const DEFAULT_APPBAR_HEIGHT = 56;
19declare const _default: React.ComponentType<Pick<Partial<import("react-native").ViewProps & React.RefAttributes<View>> & {
20 /**
21 * Whether the background color is a dark color. A dark appbar will render light text and vice-versa.
22 */
23 dark?: boolean | undefined;
24 /**
25 * Content of the `Appbar`.
26 */
27 children: React.ReactNode;
28 /**
29 * @optional
30 */
31 theme: ReactNativePaper.Theme;
32 style?: StyleProp<ViewStyle>;
33}, keyof import("react-native").ViewProps | "dark" | keyof React.RefAttributes<View>> & {
34 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
35}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Partial<import("react-native").ViewProps & React.RefAttributes<View>> & {
36 /**
37 * Whether the background color is a dark color. A dark appbar will render light text and vice-versa.
38 */
39 dark?: boolean | undefined;
40 /**
41 * Content of the `Appbar`.
42 */
43 children: React.ReactNode;
44 /**
45 * @optional
46 */
47 theme: ReactNativePaper.Theme;
48 style?: StyleProp<ViewStyle>;
49}> & (({ children, dark, style, theme, ...rest }: Props) => JSX.Element), {}>;
50export default _default;
51declare const AppbarWithTheme: React.ComponentType<Pick<Partial<import("react-native").ViewProps & React.RefAttributes<View>> & {
52 /**
53 * Whether the background color is a dark color. A dark appbar will render light text and vice-versa.
54 */
55 dark?: boolean | undefined;
56 /**
57 * Content of the `Appbar`.
58 */
59 children: React.ReactNode;
60 /**
61 * @optional
62 */
63 theme: ReactNativePaper.Theme;
64 style?: StyleProp<ViewStyle>;
65}, keyof import("react-native").ViewProps | "dark" | keyof React.RefAttributes<View>> & {
66 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
67}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Partial<import("react-native").ViewProps & React.RefAttributes<View>> & {
68 /**
69 * Whether the background color is a dark color. A dark appbar will render light text and vice-versa.
70 */
71 dark?: boolean | undefined;
72 /**
73 * Content of the `Appbar`.
74 */
75 children: React.ReactNode;
76 /**
77 * @optional
78 */
79 theme: ReactNativePaper.Theme;
80 style?: StyleProp<ViewStyle>;
81}> & (({ children, dark, style, theme, ...rest }: Props) => JSX.Element), {}>;
82export { AppbarWithTheme as Appbar };
83
\No newline at end of file