0.0.23 • Published 7 years ago

react-native-animated-swiper v0.0.23

Weekly downloads
66
License
MIT
Repository
github
Last release
7 years ago

react-native-animated-swiper

npm version

Install

yarn add react-native-animated-swiper

Definition

PropTypeRequiredDefault
childrenanyNonull
dotsboolNofalse
dotsBottomnumberNo100
dotsColorstringNorgba(0, 0, 0, 0.25)
dotsColorActivestringNo#000
dotsStyleobjectNodotsStyleDefault
driverAnimated.ValueNonew Animated.Value(0)
onSwipefuncNo(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