({
onPress,
style,
children,
pointerEvents,
theme: themeOverrides,
...rest
}: Props)
| 58 | * @extends TouchableRipple props https://callstack.github.io/react-native-paper/docs/components/TouchableRipple |
| 59 | */ |
| 60 | const DataTableRow = ({ |
| 61 | onPress, |
| 62 | style, |
| 63 | children, |
| 64 | pointerEvents, |
| 65 | theme: themeOverrides, |
| 66 | ...rest |
| 67 | }: Props) => { |
| 68 | const theme = useInternalTheme(themeOverrides); |
| 69 | const borderBottomColor = theme.isV3 |
| 70 | ? theme.colors.surfaceVariant |
| 71 | : color(theme.dark ? white : black) |
| 72 | .alpha(0.12) |
| 73 | .rgb() |
| 74 | .string(); |
| 75 | |
| 76 | return ( |
| 77 | <TouchableRipple |
| 78 | {...rest} |
| 79 | onPress={onPress} |
| 80 | style={[styles.container, { borderBottomColor }, style]} |
| 81 | > |
| 82 | <View style={styles.content} pointerEvents={pointerEvents}> |
| 83 | {children} |
| 84 | </View> |
| 85 | </TouchableRipple> |
| 86 | ); |
| 87 | }; |
| 88 | |
| 89 | DataTableRow.displayName = 'DataTable.Row'; |
| 90 |
nothing calls this directly
no test coverage detected
searching dependent graphs…