Skip to content

Commit 7c4f984

Browse files
authored
Merge pull request #814 from Iterable/loren/embedded/SDK-248-notification-component
[SDK-248] notification-component
2 parents e609aa1 + 9b76334 commit 7c4f984

10 files changed

Lines changed: 781 additions & 46 deletions

src/embedded/components/IterableEmbeddedNotification.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import { StyleSheet } from 'react-native';
2+
3+
const SHADOW_COLOR = 'rgba(0, 0, 0, 0.06)';
4+
5+
export const styles = StyleSheet.create({
6+
body: {
7+
alignSelf: 'stretch',
8+
fontSize: 14,
9+
fontWeight: '400',
10+
lineHeight: 20,
11+
},
12+
bodyContainer: {
13+
display: 'flex',
14+
flexDirection: 'column',
15+
flexGrow: 1,
16+
flexShrink: 1,
17+
gap: 4,
18+
width: '100%',
19+
},
20+
button: {
21+
borderRadius: 32,
22+
gap: 8,
23+
paddingHorizontal: 12,
24+
paddingVertical: 8,
25+
},
26+
buttonContainer: {
27+
alignItems: 'flex-start',
28+
alignSelf: 'stretch',
29+
display: 'flex',
30+
flexDirection: 'row',
31+
gap: 12,
32+
width: '100%',
33+
},
34+
buttonText: {
35+
fontSize: 14,
36+
fontWeight: '700',
37+
lineHeight: 20,
38+
},
39+
container: {
40+
alignItems: 'flex-start',
41+
borderStyle: 'solid',
42+
boxShadow:
43+
`0 1px 1px 0 ${SHADOW_COLOR}, 0 0 2px 0 ${SHADOW_COLOR}, 0 0 1px 0 ${SHADOW_COLOR}`,
44+
display: 'flex',
45+
elevation: 1,
46+
flexDirection: 'column',
47+
gap: 8,
48+
justifyContent: 'center',
49+
padding: 16,
50+
shadowColor: SHADOW_COLOR,
51+
shadowOffset: { width: 0, height: 1 },
52+
shadowOpacity: 0.9,
53+
shadowRadius: 2,
54+
width: '100%',
55+
},
56+
title: {
57+
fontSize: 16,
58+
fontWeight: '700',
59+
lineHeight: 24,
60+
},
61+
});

0 commit comments

Comments
 (0)