UNPKG

reactors

Version:

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

17 lines (14 loc) 326 B
import Reactors from '../../Core'; const flexDirection = (style) => { if ( Reactors.isDOM() && ('flexDirection' in style) && style.display !== 'flex' ) { const transformed = {}; transformed.display = 'flex'; return {...style, ...transformed}; } return style; }; export default flexDirection;