Skip to content

Commit

Permalink
navar title numberoflines 1 (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino authored Mar 27, 2019
1 parent 9f204ca commit 59cd206
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/UI/NavbarTitle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ class NavbarTitle extends Component {
style={styles.wrapper}
activeOpacity={this.props.disableNetwork ? 1 : 0.2}
>
{title ? <Text style={styles.title}>{realTitle}</Text> : null}
{title ? (
<Text numberOfLines={1} style={styles.title}>
{realTitle}
</Text>
) : null}
<View style={styles.network}>
<View style={[styles.networkIcon, color ? { backgroundColor: color } : styles.otherNetworkIcon]} />
<Text style={styles.networkName} testID={'navbar-title-network'}>
Expand Down

0 comments on commit 59cd206

Please sign in to comment.