import styled from 'styled-components/native'; import { Platform, TouchableHighlight, TouchableNativeFeedback, } from 'react-native'; import { border, color, flexbox, layout, space, typography, } from 'styled-system'; import { customBorder, customBackground, customOutline, customLayout, customExtra, customShadow, customTypography, } from '../../../utils/customProps'; export const TouchableItem = styled( Platform.OS === 'android' && Platform.Version >= 21 ? TouchableNativeFeedback : TouchableHighlight )( color, space, layout, flexbox, border, typography, customBorder, customBackground, customOutline, customShadow, customExtra, customTypography, customLayout );