Skip to content

Commit

Permalink
iPhoneX fit
Browse files Browse the repository at this point in the history
  • Loading branch information
rilyu committed Dec 17, 2017
1 parent 2dcd698 commit 31a4a4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions components/NavigationBar/NavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,16 @@ export default class NavigationBar extends Component {
titleTextAlign = 'left';
break;
}
let {left: leftInset, right: rightInset} = Theme.screenInset;
style = [{
backgroundColor: Theme.navColor,
position: 'absolute',
left: 0,
right: 0,
height: Theme.navBarContentHeight + (statusBarInsets ? Theme.statusBarHeight : 0),
paddingTop: statusBarInsets ? Theme.statusBarHeight : 0,
paddingLeft: 4,
paddingRight: 4,
paddingLeft: 4 + leftInset,
paddingRight: 4 + rightInset,
borderBottomWidth: Theme.navSeparatorLineWidth,
borderBottomColor: Theme.navSeparatorColor,
flexDirection: 'row',
Expand Down
3 changes: 2 additions & 1 deletion components/PullPicker/PullPickerView.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ export default class PullPickerView extends Overlay.PullView {
backgroundColor: Theme.pupHeaderSeparatorColor,
height: Theme.pupHeaderSeparatorHeight,
}
let {left: leftInset, right: rightInset} = Theme.screenInset;
children = (
<View style={{backgroundColor: Theme.pupColor, maxHeight: Theme.pupMaxHeight}}>
<View style={{backgroundColor: Theme.pupColor, maxHeight: Theme.pupMaxHeight, paddingLeft: leftInset, paddingRight: rightInset}}>
{!title ? null :
<View style={headerRowStyle}>
<Label style={headerTextStyle} text={title} />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teaset",
"version": "0.5.0",
"version": "0.5.1",
"description": "A UI library for react native.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 31a4a4e

Please sign in to comment.