Library used to integrate tracking view of orders
npm install @mindinventory/order-trackingWith order track library you can easily integrate tracking view of library with all the customization in Horizontal & Vertical direction.
!order_track_example gif !order_track_example gif
Using yarn
``sh`
yarn add @mindinventory/order-tracking
Using npm
`sh
npm i @mindinventory/order-tracking
`
`js
import OrderTrackList from '@mindinventory/order-tracking';
// ...
const orderData = [
{
status: 'Order Confirmed',
date: Tue, 28th Dec '21 - 1:47 PM,Thu, 30th Dec '21 - 1:30 AM
},
{
status: 'Shipped',
date: ,Thu, 30th Dec '21 - 11:31 AM
},
{
status: 'Out For Delivery',
date: ,Thu, 30th Dec '21 - 4:45 PM
},
{
status: 'Delivered',
date: ,Thu, 31st Dec '21 - 2:23 PM
},
{
status: 'Return',
date: ,
},
];
renderItem={renderOrderData}
completedIndex={count}
/>;
`
| Prop | Value | Required/Optional | Description |
| --------------------- | -------- | ----------------- | ------------------------------------------------------------------------------------------------------------- |
| data | array | _required_ | Array of your order status like: ordered, delivered, return, etc. |(default 1000 ms)
| renderItem | function | _required_ | Works similar like flatlist renderItem, to render your order status array. |
| completedIndex | number | _required_ | Used for updating the completed order index animation. |
| horizontal | boolean | _optional_ | Use for horizontal component view of Order track UI. |
| strokePendingColor | string | _optional_ | Use for default stroke color. |
| strokeCompletedColor | string | _optional_ | Use for order completed stroke color. |
| strokeDuration | number | _optional_ | Use to specify duration of path animation in milliseconds . |(default 5)
| strokeWidth | number | _optional_ | Use for set width of stroke . |(default 50)
| strokeLength | number | _optional_ | Use for set length of stroke . |(default true)
| enableRippleAnimation | boolean | _optional_ | Use for enabling ripple effect animation in progress view . |(default 20)
| rippleRadius | number | _optional_ | Use for set radius of ripple effect. More the radius, more will be ripple effect outer circle . |(default 600 ms)
| rippleDuration | number | _optional_ | Use to specify duration of ripple effect in milliseconds . |(default 400 ms)
| rippleDelay | number | _optional_ | Use to specify delay between two consecutive ripple effects animation in milliseconds . |(default 25 for vertical & 20 for Horizontal)
| rippleStyle | style | _optional_ | Use to set custom style to ripple effect |
| completedViewStyle | style | _optional_ | Use to set custom style to default completed order status view |
| pendingViewStyle | style | _optional_ | Use to set custom style to default pending order status view |
| progressViewStyle | style | _optional_ | Use to set custom style to default progress order status view |
| strokeContainerStyle | style | _optional_ | Use to set custom style to animation path container |
| strokeComponentWidth | number | _optional_ | Use to set width of custom component . |
| completedComponent | function | _optional_ | Use to set custom completed order status view |
| pendingComponent | function | _optional_ | Use to set custom pending order status view |
| progressComponent | function | _optional_ | Use to set custom progress order status view |
- react-native-svgreact-native-reanimated
- react-native-gesture-handler
-
`sh``
Goto example directory and install all packages that requires.
cd example && yarn
Pod Installation: cd example && cd ios && pod install && cd ..
To Run: yarn ios
See the contributing guide to learn how to contribute to the repository and the development workflow.
@mindinventory/order-tracking MIT-licensed.
If you use our open-source libraries in your project, please make sure to credit us and Give a star to www.mindinventory.com
![]()