MCPcopy Create free account
hub / github.com/callstack/react-native-paper / DataTableCell

Function DataTableCell

src/components/DataTable/DataTableCell.tsx:67–91  ·  view source on GitHub ↗
({
  children,
  textStyle,
  style,
  numeric,
  maxFontSizeMultiplier,
  testID,
  ...rest
}: Props)

Source from the content-addressed store, hash-verified

65 * @extends TouchableRipple props https://callstack.github.io/react-native-paper/docs/components/TouchableRipple
66 */
67const DataTableCell = ({
68 children,
69 textStyle,
70 style,
71 numeric,
72 maxFontSizeMultiplier,
73 testID,
74 ...rest
75}: Props) => {
76 return (
77 <TouchableRipple
78 {...rest}
79 testID={testID}
80 style={[styles.container, numeric && styles.right, style]}
81 >
82 <CellContent
83 textStyle={textStyle}
84 testID={testID}
85 maxFontSizeMultiplier={maxFontSizeMultiplier}
86 >
87 {children}
88 </CellContent>
89 </TouchableRipple>
90 );
91};
92
93const CellContent = ({
94 children,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…