Files
react-native-web/performance/components/Box/index.platform.js
2017-04-05 14:02:17 -07:00

18 lines
409 B
JavaScript

/* eslint-disable react/prop-types */
import classnames from 'classnames';
import React from 'react';
import View from '../View/index.platform';
const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => (
<View
{...other}
className={classnames(`color${color}`, {
fixed: fixed,
outer: outer,
row: layout === 'row'
})}
/>
);
module.exports = Box;