forked from testshallpass/react-native-dropdownalert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
21 lines (19 loc) · 684 Bytes
/
constants.js
File metadata and controls
21 lines (19 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { StatusBar, Platform, Dimensions } from 'react-native';
const StatusBarDefaultBarStyle = StatusBar._defaultProps ? StatusBar._defaultProps.barStyle.value : 'default';
const StatusBarDefaultBackgroundColor = StatusBar._defaultProps ? StatusBar._defaultProps.backgroundColor.value : 'black';
const DEFAULT_IMAGE_DIMENSIONS = 36;
const WINDOW = Dimensions.get('window');
const HEIGHT = WINDOW.height;
const WIDTH = WINDOW.width;
const IS_IOS = Platform.OS == 'ios';
const IS_ANDROID = Platform.OS == 'android';
module.exports = {
StatusBarDefaultBarStyle,
StatusBarDefaultBackgroundColor,
DEFAULT_IMAGE_DIMENSIONS,
WINDOW,
HEIGHT,
WIDTH,
IS_IOS,
IS_ANDROID,
};