title: How to detect if a view is visible in a viewport or window in react native?
body: <p>I want a similar feature just like <a href="https://github.com/joshwnj/react-visibility-sensor" rel="noreferrer">react visibility sensor</a>, but in react-native. I have a flat list with multiple items(each having different height). I want to detect whether a particular item(lets say 5th item) comes inside the view port and when it goes out</p>