Last active
June 29, 2017 08:10
-
-
Save Jahans3/b84bd5e39c1801ede4b9d3367c59a5cc 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 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