forked from jfilter/react-native-onboarding-swiper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WithCTA.js
70 lines (67 loc) · 1.74 KB
/
WithCTA.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
61
62
63
64
65
66
67
68
69
70
import { Alert, StatusBar } from 'react-native';
import React from 'react';
import { Button, Icon } from 'react-native-elements';
import Onboarding from 'react-native-onboarding-swiper';
const WithCTA = () => (
<Onboarding
showDone={false}
onSkip={() => Alert.alert('Skipped')}
pages={[
{
title: 'Hey!',
subtitle: 'Welcome to $App!',
backgroundColor: '#003c8f',
image: (
<Icon
name="hand-peace-o"
type="font-awesome"
size={100}
color="white"
/>
),
},
{
title: 'Send Messages',
subtitle: 'You can reach everybody with us',
backgroundColor: '#5e92f3',
image: (
<Icon
name="paper-plane-o"
type="font-awesome"
size={100}
color="white"
/>
),
},
{
title: 'Get Notified',
subtitle: 'We will send you notification as soon as something happened',
backgroundColor: '#1565c0',
image: (
<Icon name="bell-o" type="font-awesome" size={100} color="white" />
),
},
{
title: "That's Enough",
subtitle: (
<Button
title={'Get Started'}
containerViewStyle={{ marginTop: 20 }}
backgroundColor={'white'}
borderRadius={5}
textStyle={{ color: '#003c8f' }}
onPress={() => {
Alert.alert('done');
StatusBar.setBarStyle('default');
}}
/>
),
backgroundColor: '#003c8f',
image: (
<Icon name="rocket" type="font-awesome" size={100} color="white" />
),
},
]}
/>
);
export default WithCTA;