Does a cross-platform "in view" component exist? #238
jonsherrard
started this conversation in
General
Replies: 1 comment
-
native doesn’t have an IntersectionObserver API annoyingly. your best best is to use FlatList/FlashList which have a callback for viewable items changing, or finding some native-based solution |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to run some animations when a component comes into view, on mobile and web.
There are a couple of solutions around:
https://www.npmjs.com/package/@svanboxel/visibility-sensor-react-native - seems to be the most recently update on native
Does anyone know if a cross-platform solito-friendly library exists/
Or should I write an abstraction that uses one library or the other on each platform?
Beta Was this translation helpful? Give feedback.
All reactions