mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-08 02:39:21 +08:00
Reorganizes and rewrites the benchmarks. Each implementation is now self-contained and the benchmarks can be run using a GUI. The benchmarks themselves have been changed so that individual tests render over a shorter time frame and more samples are taken.
27 lines
504 B
JavaScript
27 lines
504 B
JavaScript
/* eslint-disable react/prop-types */
|
|
import { styled } from 'styletron-react';
|
|
|
|
const View = styled('div', ({ style }) => ({
|
|
...viewStyle,
|
|
style
|
|
}));
|
|
|
|
const viewStyle = {
|
|
alignItems: 'stretch',
|
|
borderWidth: '0px',
|
|
borderStyle: 'solid',
|
|
boxSizing: 'border-box',
|
|
display: 'flex',
|
|
flexBasis: 'auto',
|
|
flexDirection: 'column',
|
|
flexShrink: '0',
|
|
margin: '0px',
|
|
padding: '0px',
|
|
position: 'relative',
|
|
// fix flexbox bugs
|
|
minHeight: '0px',
|
|
minWidth: '0px'
|
|
};
|
|
|
|
export default View;
|