ui icon indicating copy to clipboard operation
ui copied to clipboard

Button-wrapped icons in NavigationBar are not vertically aligned.

Open thejpanganiban opened this issue 9 years ago • 3 comments

<Button>-wrapped <Icon>s does not seem to render correctly. If you look at the screenshots below, they seem to move up a little bit. I've added a <Button>-wrapped text on the left side to see if it also affects <Text> elements – but it doesn't.

  1 import React from 'react';
  2 import { View, Text } from 'react-native';
  3 import { connect } from 'react-redux';
  4 import { NavigationBar, Icon, Title, Button } from '@shoutem/ui';
  5
  6 function HomeScene(props) {
  7   return (
  8     <NavigationBar
  9       leftComponent={<Button><Text>Hello</Text></Button>}
 10       centerComponent={<Title>Loans</Title>}
 11       rightComponent={(
 12         <Button><Icon name='cart' /></Button>
 13       )}
 14     />
 15     )
 16 };
screen shot 2017-02-07 at 10 58 16 am

I'm running on:

  • @shoutem/ui ^0.10.8
  • react-native 0.41.1

thejpanganiban avatar Feb 07 '17 03:02 thejpanganiban

@thejpanganiban Thanks for submitting the issue. We're working on fix for this issue and we will release a new version of @shoutem/ui, hopefully next week, with the fix included.

rsekulic1 avatar Feb 08 '17 10:02 rsekulic1

I'm having this same issue.

bluetidepro avatar Feb 13 '17 18:02 bluetidepro

Fixed with #216

zrumenjak avatar Apr 06 '17 12:04 zrumenjak