UNPKG

@prosperitainova/dumbo-react-native

Version:
29 lines 1.34 kB
import React from 'react'; import { StyleProp, ViewStyle, GestureResponderEvent, ViewProps } from 'react-native'; /** Props for DataTableRow component */ export type DataTableRowProps = { /** Content of the row. Should be list of <DataTableCell />. */ children: React.ReactNode; /** onPress event for the row (ignored if DataTableCell has press events) */ onPress?: (event: GestureResponderEvent) => void; /** onLongPress event for the row (ignored if DataTableCell has press events) */ onLongPress?: (event: GestureResponderEvent) => void; /** Style to set on the item */ style?: StyleProp<ViewStyle>; /** Text to use for row (accessibility). Not set by default. */ rowText?: string; /** Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this. */ componentProps?: ViewProps; }; /** * DataTableRow component for rendering a data table row. * Used as a child of DataTable * * {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/DataTable.tsx | Example code} */ export declare class DataTableRow extends React.Component<DataTableRowProps> { private get styles(); private getStateStyle; render(): React.ReactNode; } //# sourceMappingURL=DataTableRow.d.ts.map