import React, { memo } from 'react' import { SvgXml } from 'react-native-svg' import { isEqual } from 'lodash' import { StyleSheet } from 'react-native' import { CellProps } from './TableTypes' // TODO(michael-adalo): improve this implementation to make it less hacky const BooleanCell = ({ cell, theme }: CellProps) => { if (cell.value === true) { return ( `} style={styles.icon} fill={theme.cellText.color} /> ) } return null } const styles = StyleSheet.create({ icon: { width: 24, height: 24, }, }) export default memo(BooleanCell, isEqual)