12345678910111213141516171819202122232425 |
- /**
- * Created by zack on 2018/5/2.
- */
- import {Platform, Dimensions} from 'react-native'
- import ExtraDimensions from 'react-native-extra-dimensions-android'
-
- const NavigationBarHeight = {
- height: Platform.OS === 'ios' ? (Dimensions.get('window').height < 812 ? 64 : 86) : 56 ////refer to google Android MD style.
- }
-
- const TabBarHeight = {
- height: Platform.OS === 'android' ? 56 : 49
- }
-
- const ScreenDimensions = {
- width: (Platform.OS === 'ios') ? Dimensions.get('window').width : ExtraDimensions.get('REAL_WINDOW_WIDTH'),
- height: (Platform.OS === 'ios') ? Dimensions.get('window').height : (ExtraDimensions.get('REAL_WINDOW_HEIGHT') - ExtraDimensions.get('STATUS_BAR_HEIGHT') - ExtraDimensions.get('SOFT_MENU_BAR_HEIGHT'))
- }
-
- export {
- NavigationBarHeight,
- TabBarHeight,
- ScreenDimensions
- }
|