rn-draggable-list
v0.0.8
Published
draggable list for react native
Readme
rn-draggable-list
Installation
yarn add rn-draggable-listUsage
Props
| Prop | Type | Description | Required | Default |
| -------------- | ------------------ | ------------------------------------ | -------- | ------------------------------------- |
| data | Array of objects | Provide data to the list | Yes | [{id:1,content:'Walk outside},...]' |
| dragIcon | Component | Set Icon for drag | No | A drag icon component |
| content | Component | Set component for list content | No | A content component |
| styles | Stylesheet | Set stylesheet for content component | No | A stylesheet |
Example
import Draggable from 'rn-draggable-list';
import {Data} from './data';
const App = () => {
return <Draggable data={Data} />;
};