Skip to content

Commit

Permalink
Merge pull request #1 from kcbar/android-fixes
Browse files Browse the repository at this point in the history
For Android: fixed position of Menu and vertically centered labels
  • Loading branch information
mxck authored Nov 2, 2017
2 parents 2cd3128 + c813540 commit 9c6756d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Menu extends React.Component {
};

return (
<View ref={this._setContainerRef}>
<View ref={this._setContainerRef} collapsable={false}>
<View onLayout={this._onButtonLayout}>{this.props.button}</View>

<Modal visible={this.state.modalOpen} transparent>
Expand Down
2 changes: 1 addition & 1 deletion src/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ MenuItem.defaultProps = {
const styles = StyleSheet.create({
container: {
height: 48,
justifyContent: 'center',
maxWidth: 248,
minWidth: 124,
},

title: {
fontSize: 14,
fontWeight: '400',
lineHeight: 48,
paddingHorizontal: 16,
},
});
Expand Down

0 comments on commit 9c6756d

Please sign in to comment.