mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-12 22:29:41 +08:00
Navigator.NavigationBar Landscape Fix
Summary: NavigationBar items are fixed to Portrait when Device is in Landscape. This supplements that fix by removing the `width` properties and just using `left` and `right` positioning respectively. <strong>Before:</strong>  <strong>After:</strong>  Closes https://github.com/facebook/react-native/pull/2606 Reviewed By: @vjeux Differential Revision: D2426942 Pulled By: @ericvicenti
This commit is contained in:
committed by
facebook-github-bot-7
parent
2a6a841ba9
commit
f8f75ff612
@@ -41,8 +41,8 @@ var BASE_STYLES = {
|
||||
position: 'absolute',
|
||||
top: STATUS_BAR_HEIGHT,
|
||||
left: 0,
|
||||
right: 0,
|
||||
alignItems: 'center',
|
||||
width: SCREEN_WIDTH,
|
||||
height: NAV_BAR_HEIGHT,
|
||||
backgroundColor: 'transparent',
|
||||
},
|
||||
@@ -52,18 +52,16 @@ var BASE_STYLES = {
|
||||
left: 0,
|
||||
overflow: 'hidden',
|
||||
opacity: 1,
|
||||
width: SCREEN_WIDTH / 3,
|
||||
height: NAV_BAR_HEIGHT,
|
||||
backgroundColor: 'transparent',
|
||||
},
|
||||
RightButton: {
|
||||
position: 'absolute',
|
||||
top: STATUS_BAR_HEIGHT,
|
||||
left: 2 * SCREEN_WIDTH / 3,
|
||||
right: 0,
|
||||
overflow: 'hidden',
|
||||
opacity: 1,
|
||||
alignItems: 'flex-end',
|
||||
width: SCREEN_WIDTH / 3,
|
||||
height: NAV_BAR_HEIGHT,
|
||||
backgroundColor: 'transparent',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user