Strange Styling Applied
Hi, I've just incorporated ShoutemUI onto my react native app and found that the buttons on a navigationBar appear not centralized with the text on the middle and that the Button appears like it is not styled, and an image within a ScrollView is set as if it was float:left instead of centered aswell.
I'll try to upload a photo later on, but do I need to import something more for all the styling to work rather than what I need from the "@shoutem/ui"? Maybe the fact that they are being instanced by the NavigatorIOS react native component is changing the styles?
I'm really motivated to use this ui library and would not like to dismiss it for probably simple things.
P.S. I've had an issue with the navigation bar that was solved on an issue by passing the stylename 'inline'. I had to delve into github and issues to identify the solution, when it could be as simple as looking into the documentation if that styling was defined there. When is the documentation going to be updated?
Its also strange styling, navBar buttons

That's exactly it
Same with <Text> in <Button>, any idea?

Hitting same thing here.
Hey guys! We have two NavigationBar components available, one to import directly from @shoutem/ui and other to be used as child component of our CardStack available in @shoutem/ui/navigation. Its example usage is shown in RestaurantsApp of our examples. Could you inform me what of those two components you are using?
Also, we are aware of such alignment issue on Android with one from @shoutem/ui/navigation and I hope we will fix it this or next week. But last image by @cmeiller looks like it has been taken on iOS, and its really strange that left and right Button are unaligned. @cmeiller could you please share your code with me? Maybe I have a clue why that is happening to you.
@SoHotSoup thanks for your answer.
Indeed the screen is from iOS. I use react-native-router-flux and extend their NavBar with yours like that:
import React from 'react';
import { NavBar } from 'react-native-router-flux';
import { Button, Icon, NavigationBar, Text, Title } from '@shoutem/ui';
class MainNavBar extends NavBar {
...
render() {
return (
<NavigationBar
styleName="clear"
leftComponent={<Button><Text>Test</Text></Button>}
centerComponent={<Title>{this.props.title}</Title>}
rightComponent={<Icon name="ic_user_profile" onPress={...} />}
/>
);
}
}
Title and Icon are aligned correctly but not the Test text.
Is it a problem because I didn't used the second NavigationBar from @shoutem/ui/navigation ?
I missed it.
The entire NavigationBar seems to be spaced incorrectly for me. Using navbar + icon example from the doc

Any updates on this issue? Running into the same problem using the @shoutem/ui NavigationBar...
Me too. I want to start react native with @shoutem/ui but same problem..
This was fixed in #216