UNPKG

reactors

Version:

View components and APIs that work web, mobile and desktop!

17 lines (13 loc) 373 B
import omit from 'lodash/omit'; import Reactors from '../../Core'; const cursor = (style) => { if (Reactors.isMobile() && style.display === 'flex') { const transformed = {}; if (!('flexDirection' in style)) { transformed.flexDirection = 'row'; } return omit({...style, ...transformed}, ['display']); } return style; }; export default cursor;