How To Use "onVisible" event?


#1

Hello I have a use case where i need to run a function when an item on a list becomes ‘Visible’ on screen and when it is not longer ‘Visible’.

How to do this in ReactStudio? Thanks.


#2

Maybe this can be added in each component under ‘Interact’->‘User Interactions’ -> ‘Visible’ in addition to ‘Tap’


#3

You can also use “Visible” prop for component to determine whether it should be visible or not. Just put your element inside component and then toggle the component visible prop “true” or “false”.