Skip to content

Instantly share code, notes, and snippets.

@tylermcginnis
Created September 21, 2016 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylermcginnis/7ca4190c81c420697ef418381381ad53 to your computer and use it in GitHub Desktop.
Save tylermcginnis/7ca4190c81c420697ef418381381ad53 to your computer and use it in GitHub Desktop.
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