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