Skip to content

Instantly share code, notes, and snippets.

@tylermcginnis
Created August 21, 2016 04:54
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/069d25c6b2651861901a2fd4e3db574a to your computer and use it in GitHub Desktop.
Save tylermcginnis/069d25c6b2651861901a2fd4e3db574a 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: {
},
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