Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mindinventory/order-tracking

Package Overview
Dependencies
Maintainers
10
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mindinventory/order-tracking

Library used to integrate tracking view of orders

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

@mindinventory/order-tracking

With 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

Installation

Using yarn

yarn add @mindinventory/order-tracking

Using npm

npm i @mindinventory/order-tracking

Usage

import OrderTrackList from '@mindinventory/order-tracking';

// ...

const orderData = [
  {
    status: 'Order Confirmed',
    date: `Tue, 28th Dec '21 - 1:47 PM`,
  },
  {
    status: 'Shipped',
    date: `Thu, 30th Dec '21 - 1:30 AM`,
  },
  {
    status: 'Out For Delivery',
    date: `Thu, 30th Dec '21 - 11:31 AM`,
  },
  {
    status: 'Delivered',
    date: `Thu, 30th Dec '21 - 4:45 PM`,
  },
  {
    status: 'Return',
    date: `Thu, 31st Dec '21 - 2:23 PM`,
  },
];

<OrderTrackList
  data={orderData}
  renderItem={renderOrderData}
  completedIndex={count}
/>;

Component props

PropValueRequired/OptionalDescription
dataarrayrequiredArray of your order status like: ordered, delivered, return, etc.
renderItemfunctionrequiredWorks similar like flatlist renderItem, to render your order status array.
completedIndexnumberrequiredUsed for updating the completed order index animation.
horizontalbooleanoptionalUse for horizontal component view of Order track UI.
strokePendingColorstringoptionalUse for default stroke color.
strokeCompletedColorstringoptionalUse for order completed stroke color.
strokeDurationnumberoptionalUse to specify duration of path animation in milliseconds (default 1000 ms).
strokeWidthnumberoptionalUse for set width of stroke (default 5).
strokeLengthnumberoptionalUse for set length of stroke (default 50).
enableRippleAnimationbooleanoptionalUse for enabling ripple effect animation in progress view (default true).
rippleRadiusnumberoptionalUse for set radius of ripple effect. More the radius, more will be ripple effect outer circle (default 20).
rippleDurationnumberoptionalUse to specify duration of ripple effect in milliseconds (default 600 ms).
rippleDelaynumberoptionalUse to specify delay between two consecutive ripple effects animation in milliseconds (default 400 ms).
rippleStylestyleoptionalUse to set custom style to ripple effect
completedViewStylestyleoptionalUse to set custom style to default completed order status view
pendingViewStylestyleoptionalUse to set custom style to default pending order status view
progressViewStylestyleoptionalUse to set custom style to default progress order status view
strokeContainerStylestyleoptionalUse to set custom style to animation path container
strokeComponentWidthnumberoptionalUse to set width of custom component (default 25 for vertical & 20 for Horizontal).
completedComponentfunctionoptionalUse to set custom completed order status view
pendingComponentfunctionoptionalUse to set custom pending order status view
progressComponentfunctionoptionalUse to set custom progress order status view

Dependencies

  • react-native-svg
  • react-native-reanimated
  • react-native-gesture-handler

To run example

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

Contributing!

See the contributing guide to learn how to contribute to the repository and the development workflow.

License!

@mindinventory/order-tracking MIT-licensed.

Let us know!

If you use our open-source libraries in your project, please make sure to credit us and Give a star to www.mindinventory.com

Please feel free to use this component and Let us know if you are interested to building Apps or Designing Products.

app development

Keywords

FAQs

Package last updated on 04 May 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc