UNPKG

react-native-paper

Version:
65 lines (64 loc) 1.9 kB
import * as React from 'react'; import { View, ViewStyle, StyleProp, TextStyle } from 'react-native'; declare type Props = React.ComponentPropsWithRef<typeof View> & { /** * Title text for the section. */ title?: string; /** * Content of the section. */ children: React.ReactNode; /** * @optional */ theme: ReactNativePaper.Theme; /** * Style that is passed to Title element. */ titleStyle?: StyleProp<TextStyle>; style?: StyleProp<ViewStyle>; }; declare const _default: React.ComponentType<Pick<import("react-native").ViewProps & React.RefAttributes<View> & { /** * Title text for the section. */ title?: string | undefined; /** * Content of the section. */ children: React.ReactNode; /** * @optional */ theme: ReactNativePaper.Theme; /** * Style that is passed to Title element. */ titleStyle?: StyleProp<TextStyle>; style?: StyleProp<ViewStyle>; }, "title" | keyof import("react-native").ViewProps | keyof React.RefAttributes<View> | "titleStyle"> & { theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").ViewProps & React.RefAttributes<View> & { /** * Title text for the section. */ title?: string | undefined; /** * Content of the section. */ children: React.ReactNode; /** * @optional */ theme: ReactNativePaper.Theme; /** * Style that is passed to Title element. */ titleStyle?: StyleProp<TextStyle>; style?: StyleProp<ViewStyle>; }> & { ({ children, title, titleStyle, style, ...rest }: Props): JSX.Element; displayName: string; }, {}>; export default _default;