如何在 react-bootstrap-table-next 中获取选定的行 ID?

How do I get the selected row ID in a react-bootstrap-table-next?

有没有办法让我获得我 select 行的报告 ID?我正在使用 react-bootstrap-table-next 并在中定义了列.. 这样..

这是我的照片栏,我想获取 ID 并将其传递给我的模态组件以显示正确的图像。

使用row.reportId获取id

return(
        <div>
          <DefectPhotoModal
             id = {row.reportId}
          />
        </div>
      )