0.0.23 • Published 7 years ago
react-native-animated-swiper v0.0.23
react-native-animated-swiper
Install
yarn add react-native-animated-swiper
Definition
Prop | Type | Required | Default |
---|---|---|---|
children | any | No | null |
dots | bool | No | false |
dotsBottom | number | No | 100 |
dotsColor | string | No | rgba(0, 0, 0, 0.25) |
dotsColorActive | string | No | #000 |
dotsStyle | object | No | dotsStyleDefault |
driver | Animated.Value | No | new Animated.Value(0) |
onSwipe | func | No | (event, index) => undefined |
Example
import React from 'react';
import { Text, View } from 'react-native';
import Swiper from 'react-native-animated-swiper';
const Example = () => (
<Swiper
dots
dotsColor="rgba(97, 218, 251, 0.25)"
dotsColorActive="rgba(97, 218, 251, 1)"
style={styles.slides}>
<Slide title="Lorem" />
<Slide title="ipsum" />
<Slide title="dolor" />
<Slide title="sit" />
</Swiper>
);
const Slide = ({ title }) => (
<View style={styles.slide}>
<Text style={styles.title}>{title}</Text>
</View>
);
const styles = {
slides: { backgroundColor: '#F5FCFF' },
slide: { alignItems: 'center', flex: 1, justifyContent: 'center' },
title: { color: 'rgba(97, 218, 251, 1)', fontSize: 36 }
};
export default Example;
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago