Skip to content

TusharSanchaniya-mi/mindinventory-react-native-bus-seat-layout

Repository files navigation

@mindinventory/react-native-booking-ticket

React Native Booking Ticket

Installation

npm install @mindinventory/react-native-booking-ticket
yarn add @mindinventory/react-native-booking-ticket

Supported platform

  • Android
  • Ios

Usage

import SeatsLayout from "@mindinventory/react-native-booking-ticket";

Props to use

Parameter Type Description
row number Set number of rows to draw seat layout.
layout Layout (Optional) Default value columnOne: 2 & columnTwo: 2.
driverPosition string (Optional) Accepts string args among left or right. Default is right.
isSleeperLayout boolean (Optional) Accepts boolean value either true or false. Default is false.
maxSeatToSelect number (Optional) Allow uset to select maximum number of seats to book in one go. Default value 7.
selectedSeats Array (Optional) Accepts value seatNumber number and seatType number which accepts value from (booked or women or blocked). Default its set to blank array.

Contributing!

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

License!

@mindinventory/react-native-booking-ticket 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