Instantly share code, notes, and snippets.

@Jahans3 Jahans3/Component.js
Last active Jun 29, 2017

Embed
What would you like to do?
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