Created
September 21, 2016 02:38
-
-
Save tylermcginnis/7ca4190c81c420697ef418381381ad53 to your computer and use it in GitHub Desktop.
This file contains 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: { | |
flex: 1, | |
}, | |
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