File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-navigation" ,
3
- "version" : " 1.0.0-beta.17 " ,
3
+ "version" : " 1.0.0-beta.18 " ,
4
4
"description" : " React Navigation" ,
5
5
"main" : " src/react-navigation.js" ,
6
6
"sources" : {
Original file line number Diff line number Diff line change @@ -44,10 +44,18 @@ type State = {
44
44
} ;
45
45
46
46
const APPBAR_HEIGHT = Platform . OS === 'ios' ? 44 : 56 ;
47
+ const STATUSBAR_HEIGHT = Platform . OS === 'ios' ? 20 : 0 ;
47
48
const TITLE_OFFSET = Platform . OS === 'ios' ? 70 : 56 ;
48
49
49
50
type Props = HeaderProps & { isLandscape : boolean } ;
50
51
class Header extends React . PureComponent < Props , State > {
52
+ static get HEIGHT ( ) {
53
+ console . warn (
54
+ 'Header.HEIGHT is deprecated and will be removed before react-navigation comes out of beta.'
55
+ ) ;
56
+ return APPBAR_HEIGHT + STATUSBAR_HEIGHT ;
57
+ }
58
+
51
59
state = {
52
60
widths : { } ,
53
61
} ;
You can’t perform that action at this time.
0 commit comments