-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathSnapUIDateTimePicker.styles.ts
More file actions
35 lines (33 loc) · 850 Bytes
/
SnapUIDateTimePicker.styles.ts
File metadata and controls
35 lines (33 loc) · 850 Bytes
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
import { StyleSheet } from 'react-native';
import { Theme } from '../../../util/theme/models';
import Device from '../../../util/device';
/**
* Generates the style sheet for the SnapUIDateTimePicker component.
*
* @param params Style sheet params.
* @param params.theme App theme from ThemeContext.
* @returns StyleSheet object.
*/
const styleSheet = (params: {
theme: Theme;
vars: {
selected?: boolean;
compact?: boolean;
};
}) => {
const { theme } = params;
const { colors } = theme;
return StyleSheet.create({
modal: {
backgroundColor: colors.background.default,
borderTopLeftRadius: 24,
borderTopRightRadius: 24,
paddingBottom: Device.isIphoneX() ? 20 : 0,
alignItems: 'center',
gap: 16,
paddingLeft: 16,
paddingRight: 16,
},
});
};
export default styleSheet;