Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logo image in header not just title #440

Closed
adambene opened this issue Jan 20, 2017 · 10 comments
Closed

logo image in header not just title #440

adambene opened this issue Jan 20, 2017 · 10 comments

Comments

@adambene
Copy link

Hi, I am about to implement the ability to add an image (logo) in the header just as text. It is not possible with the latest release.
What are your thoughts?

@sankhadeeproy007
Copy link
Contributor

You can now with 2.0.x!

@adambene
Copy link
Author

@sankhadeeproy007 I checked the docs but can not find an example for this.
Could you provide one?

@sankhadeeproy007
Copy link
Contributor

screen shot 2017-02-15 at 11 15 54 am
There you go.

@adambene
Copy link
Author

@sankhadeeproy007 almost there.
Is it now possible to place an image in the Body without a Button?

@sankhadeeproy007
Copy link
Contributor

Yes, did you try?

@adambene
Copy link
Author

Some weeks ago, but you progress really fast so we'll give it a try again. Keep up the good work! :) Thx!

@dekkofilms
Copy link

I tried doing this, but i don't know if it is working properly yet ... unless I am missing still missing something:

<Header>
  <Left>
    <Button transparent>
      <Icon name='menu' />
    </Button>
  </Left>
  <Body>
    <Image source={{uri: appBrandUrl}} style={{width: 200, height: 35, resizeMode: "contain"}} />
  </Body>
  <Right>
    <Button transparent>
      <Icon name='cart' />
    </Button>
  </Right>
</Header>

Or maybe I am misunderstanding the question above about adding an image into the body of the header.

Any suggestions appreciated! Thanks!

@adambene
Copy link
Author

@dekkofilms The question is this but we have not yet migrated to 2.x.x. Doesn't it work?

@sankhadeeproy007
Copy link
Contributor

@dekkofilms What is the output you get from the above code?

@dekkofilms
Copy link

dekkofilms commented Mar 20, 2017

I did get it to work ... it was an issue with an HTTP image, and not an HTTPS. I forgot Apple generally only accepts secure images, so sorry for the confusion on thinking it was a Native Base issue. Thanks so much, guys! @adambene @sankhadeeproy007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants