-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBaseStyles.js
39 lines (32 loc) · 856 Bytes
/
BaseStyles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// --
// -- -- Code by Piotr Machowski <[email protected]>
// --
'use strict';
import Dimensions from 'Dimensions';
const SCREEN_WIDTH = Dimensions.get('window').width;
const SCREEN_HEIGHT = Dimensions.get('window').height;
export default {
screenW: SCREEN_WIDTH,
screenH: SCREEN_HEIGHT,
screenCenterX: SCREEN_WIDTH / 2,
screenCenterY: SCREEN_HEIGHT / 2,
container: {
flex: 1,
backgroundColor: 'transparent',
position: 'absolute',
top: 0, left: 0,
width: SCREEN_WIDTH, height: SCREEN_HEIGHT,
},
bgImageBig: {
position: 'absolute',
left: 0, top: 0,
width: SCREEN_WIDTH, height: SCREEN_HEIGHT,
backgroundColor: '#000',
},
bgImage: {
position: 'absolute',
left: SCREEN_WIDTH / 2, top: SCREEN_HEIGHT / 2,
marginLeft: -192, marginTop: -334,
width: 192 * 2, height: 334 * 2,
},
};