Black in overflow when list is scrolled

i have a list like this. the problem is when the user scrolls, they see black on the overflow at the top and bottom. the screenshot is from an ios iphone x.


i’ve been trying multiple solutions with setting the background but nothing works. has anyone else ever tun across this problem?

thank you!