Closed stabenfeldt closed 6 years ago
Hi @stabenfeldt I can't reproduce this error. If you make a small repo that causes this, I can take a look at it.
The error has disappeared. Not sure what made it go away, but I'll definitely make a small repo you can look at if it reappears. Thanks! :-)
This is more an TypeScript issue than an "rn-section-list-get-item-layout" issue. But I'm posting it here anyway as users of "rn-section-list-get-item-layout" might also be using TS. :-)
The TypeScript compiler complains about this line:
getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
I guess both
rowData
androwIndex
are used internally in the npm package. But how do I tell that to TypeScript?