import * as React from 'react'; import { StyleProp, ViewStyle, ViewProps } from 'react-native'; import TouchableRipple from '../TouchableRipple/TouchableRipple'; import type { $RemoveChildren } from '../../types'; declare type Props = $RemoveChildren & { /** * Content of the `DataTableRow`. */ children: React.ReactNode; /** * Function to execute on press. */ onPress?: () => void; style?: StyleProp; /** * @optional */ theme: ReactNativePaper.Theme; /** * `pointerEvents` passed to the `View` container, which is wrapping children within `TouchableRipple`. */ pointerEvents?: ViewProps['pointerEvents']; }; /** * A component to show a single row inside of a table. * *
*
* *
*
* * * ## Usage * ```js * import * as React from 'react'; * import { DataTable } from 'react-native-paper'; * * const MyComponent = () => ( * * 1 * 2 * 3 * 4 * * ); * * export default MyComponent; * ``` */ declare const DataTableRow: ({ onPress, style, theme, children, pointerEvents, ...rest }: Props) => JSX.Element; declare const _default: (React.ComponentClass & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & (({ onPress, style, theme, children, pointerEvents, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent & (({ onPress, style, theme, children, pointerEvents, ...rest }: Props) => JSX.Element)), {}>) | (React.FunctionComponent & { theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & (({ onPress, style, theme, children, pointerEvents, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent & (({ onPress, style, theme, children, pointerEvents, ...rest }: Props) => JSX.Element)), {}>); export default _default; export { DataTableRow };