({
children,
textStyle,
maxFontSizeMultiplier,
testID,
}: Pick<
Props,
'children' | 'textStyle' | 'testID' | 'maxFontSizeMultiplier'
>)
| 91 | }; |
| 92 | |
| 93 | const CellContent = ({ |
| 94 | children, |
| 95 | textStyle, |
| 96 | maxFontSizeMultiplier, |
| 97 | testID, |
| 98 | }: Pick< |
| 99 | Props, |
| 100 | 'children' | 'textStyle' | 'testID' | 'maxFontSizeMultiplier' |
| 101 | >) => { |
| 102 | if (React.isValidElement(children)) { |
| 103 | return children; |
| 104 | } |
| 105 | |
| 106 | return ( |
| 107 | <Text |
| 108 | style={textStyle} |
| 109 | numberOfLines={1} |
| 110 | maxFontSizeMultiplier={maxFontSizeMultiplier} |
| 111 | testID={`${testID}-text-container`} |
| 112 | > |
| 113 | {children} |
| 114 | </Text> |
| 115 | ); |
| 116 | }; |
| 117 | |
| 118 | DataTableCell.displayName = 'DataTable.Cell'; |
| 119 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…