Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Last active June 29, 2017 08:10
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 Jahans3/b84bd5e39c1801ede4b9d3367c59a5cc to your computer and use it in GitHub Desktop.
Save Jahans3/b84bd5e39c1801ede4b9d3367c59a5cc to your computer and use it in GitHub Desktop.
import Button from '../Button'
import style from './style'
const MyComponent = ({ headerText, buttons }) => (
<View style={style.container}>
<View style={style.headerWrapper}>
<Text style={style.headerText}>
{headerText}
</Text>
</View>
<View style={style.contentWrapper}>
{buttons.map(button => (
<Button {...button} />
)}
</View>
</View>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment