Created
August 21, 2016 04:54
-
-
Save tylermcginnis/069d25c6b2651861901a2fd4e3db574a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { StyleSheet, Text, View, AppRegistry } from 'react-native' | |
class FlexboxExamples extends Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<View style={styles.box}/> | |
<View style={styles.box}/> | |
<View style={styles.box}/> | |
</View> | |
) | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
}, | |
box: { | |
height: 50, | |
width: 50, | |
backgroundColor: '#e76e63', | |
margin: 10, | |
} | |
}) | |
AppRegistry.registerComponent('FlexboxExamples', () => FlexboxExamples); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment