ui
ui copied to clipboard
Button-wrapped icons in NavigationBar are not vertically aligned.
<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 };
I'm running on:
- @shoutem/ui ^0.10.8
- react-native 0.41.1
@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.
I'm having this same issue.
Fixed with #216