"App Intro Slider - React Native"
Bootstrap 4.1.1 Snippet by RachnaKhatnawlia

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
import * as React from 'react';
import { useState } from 'react';
import { Text, View, StyleSheet, Image } from 'react-native';
import AppIntroSlider from 'react-native-app-intro-slider';
export default function Tutorial() {
const [showSlider, setShowSlider] = useState(true);
const slides = [
{
key: '1',
image: require('../assets/ic_1_2x.png'),
title: 'Hendrerit vulputate sem',
description:
'hello.',
},
{
key: '2',
image: require('../assets/ic_1_2x.png'),
title: 'Hendrerit vulputate sem',
description:'hello2'
},
{
key: '3',
image: require('../assets/ic_1_2x.png'),
title: 'Hendrerit vulputate sem',
description:'hello3'
},
];
const renderItem = ({ item }) => {
return (
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
const styles = StyleSheet.create({
sliderContainer: {
backgroundColor: '#2E2E2E',
padding: 20,
},
slide: {
backgroundColor: '#4C4C4C',
borderRadius: 15,
},
slideTitle: {
fontSize: 22,
textAlign: 'center',
color:'#ffffff'
},
sliderDes: {
color:'#999999',
lineHeight:22,
textAlign:'center',
padding:20
},
introSLiderPic: {
height: 230,
width: 250,
flex: 1,
alignSelf: 'center',
},
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: