Skip to content

Commit

Permalink
fix corner component position for RN 0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Bormann committed Jun 24, 2016
1 parent 9166a2b commit 9b75852
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions components/NavBarContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,8 @@ const styles = StyleSheet.create({
alignItems: 'center',
},
corner: {
flex: 1,
justifyContent: 'center',
},

alignLeft: {
alignItems: 'flex-start',
},
alignRight: {
alignItems: 'flex-end',
flexDirection: 'row',
alignItems: 'center',
},
buttonTextLeft: {
marginLeft: 10,
Expand Down Expand Up @@ -191,7 +184,7 @@ class NavBarContent extends React.Component {

if (Platform.OS === 'ios' || this.props.route.leftCorner || this.props.route.index > 0) {
leftCorner = (
<View style={[styles.corner, styles.alignLeft]}>
<View style={styles.corner}>
{leftCornerContent}
</View>
);
Expand Down Expand Up @@ -219,7 +212,7 @@ class NavBarContent extends React.Component {

if (Platform.OS === 'ios' || this.props.route.rightCorner || this.props.route.index > 0) {
rightCorner = (
<View style={[styles.corner, styles.alignRight]}>
<View style={styles.corner}>
{rightCornerContent}
</View>
);
Expand Down

0 comments on commit 9b75852

Please sign in to comment.