Check out example codes for "office open xml check if row is empty". It will help you in understanding the concepts better.

Code Example 1

var sheetData = part.Worksheet.Elements<SheetData>().First();
var rows = sheetData.Elements<Row>().ToList();
for (var rowIndex = 0; rowIndex < rows.Count; rowIndex++)
{
  var row = rows[rowIndex];
  if (string.IsNullOrWhiteSpace(row.InnerText)) continue;
  // Row is not empty
}

Learn ReactJs, React Native from akashmittal.com