-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
60 lines (55 loc) · 1.37 KB
/
App.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {SafeAreaView, StyleSheet, Text, View,} from 'react-native';
const App = () => (
<SafeAreaView>
<NotificationBox/>
</SafeAreaView>
)
export const NotificationBox = () => (
<View
style={[styles.outerContainer, {borderColor: '#BFC0C2', borderTopColor: '#005691',}]}>
<View style={styles.innerContainer}>
<View style={styles.textContainer}>
<Text style={styles.textHeading}>Lorem ipsum</Text>
<Text>Lorem ipsum</Text>
<View style={styles.link}>
<Text style={{color: '#006EAD'}}>Lorem ipsum</Text>
</View>
</View>
</View>
</View>
);
const styles = StyleSheet.create({
innerContainer: {
flexDirection: 'row',
alignItems: 'flex-start',
margin: 12,
marginLeft: 4,
marginRight: 16,
marginBottom: 14,
},
link: {
marginTop: 8,
justifyContent: 'flex-start',
flexDirection: 'row',
alignItems: 'center',
},
outerContainer: {
borderWidth: 1,
borderTopWidth: 5,
},
textContainer: {
flexShrink: 1,
},
textHeading: {
marginBottom: 2,
},
});
export default App;