As you can see in react-photo-gallery there are 2 layouts: row and column.
In this library, we have both algorithms but the createCollage function is always using the row layout one (here).
To close this issue, a new option to createCollage should be added (layout = 'row'). When specifying row, do the same it is currently doing. For layout = 'column', use computeColumnLayout from src/layouts/columns.js similar to https://github.com/neptunian/react-photo-gallery/blob/master/src/Gallery.js#L76
As you can see in react-photo-gallery there are 2 layouts: row and column.
In this library, we have both algorithms but the
createCollagefunction is always using therow layoutone (here).To close this issue, a new option to
createCollageshould be added (layout = 'row'). When specifyingrow, do the same it is currently doing. Forlayout = 'column', usecomputeColumnLayoutfromsrc/layouts/columns.jssimilar to https://github.com/neptunian/react-photo-gallery/blob/master/src/Gallery.js#L76