Mindinventory / react-native-bus-seat-layout

A @mindinventory/react-native-bus-seat-layout library provides seats layout for bus booking, you can give custom styles of seat numbers. also can give images for seat. you have to provide number of rows that you need to draw layout, you will get selected seats from props.
https://www.mindinventory.com/react-native-app-development.php
MIT License
22 stars 6 forks source link

Getting duplicate seat in the last row #9

Closed shashwataggarwal closed 1 year ago

shashwataggarwal commented 1 year ago

I am getting a duplicate seat in the last row. For eg:

 <SeatsLayout
        row={3}
        numberTextStyle={{ fontSize: 12 }}
        getBookedSeats={(seats) => {
          console.log("getBookedSeats :: ", seats);
        }}
      />

Gives the following image. There should be either 9 seats or the middle seat should not be there. There should be an option to allow for middle seat in the last row (but with the correct number).

image

@TusharSanchaniya-mi