If you know how to fix the issue, make a pull request instead.
@types/react-native package and had problems.Definitions by: in index.d.ts) so they can respond.If you do not mention the authors the issue will be ignored.
Commit 2f9d9fad25 caused a regression where renderItem used to be optional, it is now required, breaking cases where all sections in a SectionList has a renderItem.
Found the offending PR: #22403
@tn0502 Thank you for reporting the issue.
At the time PR: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/22403 was submitted, renderItem seemed to be an optional prop but it no longer is.
I will fix this issue and submit a PR over the weekend.
@bedemiralp The docs have definitely shown to be out of sync with the actual source from time to time, so probably best to check the source (and maybe PR doc changes to RN?).
@bedemiralp I think what happened is that you're trusting the docs to be correct. When SectionList was introduced in 0.42, renderItem was optional. You can see it in code: https://github.com/facebook/react-native/blob/0.44-stable/Libraries/Lists/SectionList.js. This has not changed till this day.
Edit: Or what @alloy said :)