-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.ts
37 lines (33 loc) · 1.34 KB
/
styles.ts
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
import { Dimensions } from 'react-native';
import { AuthStyles } from './Styles/authStyles';
import { ButtonStyles } from './Styles/buttonStyles';
import { ChatStyles } from './Styles/chatStyles';
import { ContainerStyles } from './Styles/containerStyles';
import { CreateEventStyles } from './Styles/createEventStyles';
import { EventStyles } from './Styles/eventStyles';
import { FriendStyles } from './Styles/friendStyles';
import { ProfileStyles } from './Styles/profileStyles';
import { StoryStyles } from './Styles/storyStyles';
import { TextStyles } from './Styles/textStyles';
import { SplashStyles } from './Styles/splashStyles';
import { StyleSheet } from 'react-native';
// Height of the entire phone window
export const windowWidth = Dimensions.get('window').width;
export const windowHeight = Dimensions.get('window').height;
// Height of screen minus nav bar
export const screenWidth = Dimensions.get('screen').width;
export const screenHeight = Dimensions.get('screen').height;
const stylesheets = [
new AuthStyles(),
new ButtonStyles(),
new ChatStyles(),
new ContainerStyles(),
new CreateEventStyles(),
new EventStyles(),
new FriendStyles(),
new ProfileStyles(),
new StoryStyles(),
new TextStyles(),
new SplashStyles()
]
export const styles : any = StyleSheet.flatten(stylesheets.map(sheet => sheet.getStyles()))