Adding onClick handler to particular elements inside lottie #1224
Unanswered
rawalabhinav
asked this question in
Q&A
Replies: 1 comment
-
Lottie animations are basically drawings, they are not separate elements to be accessed. Your approach with Touchable opcacity is probably the way to go |
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
-
Use Case
I have a lottie animation, within which there's an element upon click on which I want to switch to another screen(by resolving a deep link).
Problem
How to access and add event listeners to a particular object inside lottie using
LottieView
?Hack
The only way I found to do it is have a
TouchableOpacity
overlay above the lottie for the particular object, luckily that object in my lottie is static.Beta Was this translation helpful? Give feedback.
All reactions