import React from 'react';
import { Image, Text, View } from '.';
class Example extends React.Component {
render() {
return (
{[1,2,3,4,5,6].map((item) => {
return (
{item}
);
})}
);
}
}
const style = {
root: {
flexDirection: 'row',
flexWrap: 'wrap',
height: '100px'
},
box: {
alignItems: 'center',
backgroundColor: 'lightblue',
flexGrow: 1,
justifyContent: 'center',
borderColor: 'blue',
borderWidth: '5px'
},
boxFull: {
width: '100%'
}
}
React.render(, document.getElementById('react-root'));