New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-circular-carousel

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-circular-carousel

Circular Carousel component for React Native

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

React Native Circular Carousal

Circular Carousal for use on iOS and Android.

Installation

Open a Terminal in your project's folder and run,


yarn add react-native-circular-carousal
					or
npm install --save react-native-circular-carousal

Usage


import CircularCarousal from  'react-native-circular-carousal';

const dataSource = [
  {name: 'Ahmed'},
  {name: 'Ali'},
  {name: 'Umar'},
  {name: 'Bilal'}
]

<CircularCarousal
	style={{ width: 350 }}
	dataSource={dataSource}
	renderItem={(data) => <CarousalItem data={data} />}
	onItemPress={handleItemPress}
/>;

Props

PropTypeDescription
dataSource*ArrayItems datasource
dropAreaLayoutObject: { height, width, x, y }Layout of component where carousal items are going to be dropped
renderItem(data) => ComponentRender a single carousal item component
onItemPress(index) => voidThis handler function is called when front carousal item is tapped.
onItemDrop(index) => voidThis handler function is called when carousal item is dropped upon Drop Area.
styleObject: { width, height }Styles given to container component. Default: { width: 350, height: 200 }
itemStyleObject: { width, height }Styles given to a carousal item component. Default: { width: 110, height: 120 }

**Provide correct styles as these are used in arranging items in circle.

Thanks to contributors:

  • Shamshad Khan
  • Umar Ashfaq

Keywords

react-native-component

FAQs

Package last updated on 08 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts