react-native-lfcarousel

1.1.1 • Public • Published

Carousel component for React Native

NPM version

Circular carousel for react-native. Supports iOS, Android and Web (react-native-web).

Demo

Demo

Install

npm install react-native-lfcarousel --save

Full example code

Usage

import React from 'react';
import { StyleSheet, View } from 'react-native';
import Carousel from 'react-native-lfcarousel';

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
});

function App() {
  return (
    <Carousel
      style={styles.container}
      speed={2000}
      pagerColor="#000"
      activePagerColor="#fff"
    >
      <View style={{ flex: 1, backgroundColor: 'red' }} />
      <View style={{ flex: 1, backgroundColor: 'green' }} />
      <View style={{ flex: 1, backgroundColor: 'blue' }} />
    </Carousel>
  );
}

export default App;

License

react-native-lfcarousel is licensed under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-lfcarousel

Weekly Downloads

22

Version

1.1.1

License

MIT

Last publish

Collaborators

  • luisfcofv