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

Function getTableCell

docs/src/components/ThemeColorsTable.tsx:20–28  ·  view source on GitHub ↗
(keys: string[], modes: DataObject)

Source from the content-addressed store, hash-verified

18};
19
20const getTableCell = (keys: string[], modes: DataObject): ReactNode[] => {
21 return keys.map((key) => {
22 const value = modes[key];
23 if (typeof value === 'string') {
24 return <td key={key}>{value || ''}</td>;
25 }
26 return <td key={key} />;
27 });
28};
29
30const FlatTable = ({
31 themeColorsData,

Callers 2

FlatTableFunction · 0.85
TabbedTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…