ide / react-native-button

A button for React apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add a image to the button

eoinlane opened this issue · comments

Thanks very much for creating this button. If i wanted to add a image to the button how might i do that?

I have attached a mock up of what i am looking for.

Eoin
screen shot 2016-07-13 at 14 41 25

You should be able to write:

<Button>
  <Image />
  <Text>Marketing</Text>
</Button>

and fiddle with the styling to get the layout you want.

@ide this doesn't work

i found this repo
https://github.com/bird-frank/react-native-combined-button

need some tweak for style but work