Files
react-native-web/packages/benchmarks/src/implementations/styled-jsx/View.js
Giuseppe Gurgone 1b493c9914 Add styled-jsx to benchmarks
Close #782
2018-01-19 12:51:21 -08:00

33 lines
771 B
JavaScript

/* eslint-disable react/prop-types */
import React from 'react';
class View extends React.Component {
render() {
const { children, className, ...props } = this.props;
return (
<div {...props} className={`initial ${className}`}>
{children}
<style jsx>{`
.initial {
align-items: stretch;
border-width: 0;
border-style: solid;
box-sizing: border-box;
display: flex;
flex-basis: auto;
flex-direction: column;
flex-shrink: 0;
margin: 0;
padding: 0;
position: relative;
min-height: 0;
min-width: 0;
}
`}</style>
</div>
);
}
}
export default View;