mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-18 01:41:52 +08:00
The "platform" benchmark relies on no intermediate layer. All the static CSS it requires is inlined in the HTML page.
18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
/* eslint-disable react/prop-types */
|
|
import classnames from 'classnames';
|
|
import React from 'react';
|
|
import View from '../View';
|
|
|
|
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;
|