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