-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmy-banners.tsx
59 lines (55 loc) · 1.16 KB
/
my-banners.tsx
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
import * as React from 'react';
import {View, Text} from 'react-native';
const RegularBanner = () => (
<Text
style={{
color: 'white',
fontSize: 16,
fontWeight: 'bold',
marginHorizontal: 20,
}}>
Hello the regular banner!
</Text>
);
const BigBanner = () => (
<View style={{paddingVertical: 20}}>
<Text
style={{
color: 'white',
fontSize: 16,
fontWeight: 'bold',
marginHorizontal: 20,
}}>
{`Hello the Big banner!
Don't worry about how big this is.
It should render correctly.
Cool!`}
</Text>
</View>
);
const Toast = () => (
<View style={{padding: 14}}>
<View
style={{
backgroundColor: '#0007',
borderRadius: 10,
borderWidth: 1,
borderColor: '#000',
width: '100%',
height: 60,
justifyContent: 'center',
}}>
<Text
style={{
color: 'white',
fontSize: 16,
fontWeight: 'bold',
marginHorizontal: 20,
textAlign: 'center',
}}>
Allright! This is a toast :)
</Text>
</View>
</View>
);
export {RegularBanner, BigBanner, Toast};