-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathIterableEmbeddedBanner.styles.ts
More file actions
89 lines (87 loc) · 2.04 KB
/
Copy pathIterableEmbeddedBanner.styles.ts
File metadata and controls
89 lines (87 loc) · 2.04 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import { StyleSheet, Platform } from 'react-native';
// See https://support.iterable.com/hc/en-us/articles/23230946708244-Out-of-the-Box-Views-for-Embedded-Messages#banners
export const IMAGE_HEIGHT = Platform.OS === 'android' ? 80 : 100;
export const IMAGE_WIDTH = Platform.OS === 'android' ? 80 : 100;
const SHADOW_COLOR_LIGHT = 'rgba(0, 0, 0, 0.06)';
const SHADOW_COLOR_DARK = 'rgba(0, 0, 0, 0.08)';
export const styles = StyleSheet.create({
body: {
alignSelf: 'stretch',
fontSize: 14,
fontWeight: '400',
lineHeight: 20,
},
bodyContainer: {
alignItems: 'center',
alignSelf: 'stretch',
display: 'flex',
flexDirection: 'row',
paddingTop: 4,
},
button: {
borderRadius: 32,
gap: 8,
},
buttonContainer: {
alignItems: 'flex-start',
alignSelf: 'stretch',
display: 'flex',
flexDirection: 'row',
gap: 12,
width: '100%',
},
buttonText: {
fontSize: 14,
fontWeight: '400',
lineHeight: 20,
paddingHorizontal: 12,
paddingVertical: 8,
},
container: {
alignItems: 'flex-start',
borderStyle: 'solid',
boxShadow:
`0 1px 1px 0 ${SHADOW_COLOR_LIGHT}, 0 0 2px 0 ${SHADOW_COLOR_LIGHT}, 0 0 1px 0 ${SHADOW_COLOR_DARK}`,
display: 'flex',
elevation: 1,
flexDirection: 'column',
gap: 16,
justifyContent: 'center',
padding: 16,
shadowColor: SHADOW_COLOR_LIGHT,
shadowOffset: { width: 0, height: 1 },
shadowOpacity: 0.9,
shadowRadius: 2,
width: '100%',
},
mediaContainer: {
alignItems: 'flex-start',
alignSelf: 'stretch',
display: 'flex',
flexDirection: 'row',
},
mediaImage: {
borderRadius: 6,
borderStyle: 'solid',
borderWidth: 1,
height: IMAGE_HEIGHT,
paddingHorizontal: 0,
paddingVertical: 0,
width: IMAGE_WIDTH,
},
textContainer: {
alignSelf: 'center',
display: 'flex',
flexDirection: 'column',
flexGrow: 1,
flexShrink: 1,
gap: 4,
width: '100%',
},
title: {
fontSize: 16,
fontWeight: '700',
lineHeight: 16,
paddingBottom: 4,
},
});