You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want that when I scroll halfway, execute a function, but I can't get that value, I'm testing with const {top, height} = useHeaderMeasurements (); And with react native animated, but I can't get it, any suggestions?
Thanks!!
The text was updated successfully, but these errors were encountered:
Halfway of the header? Probably you can use useDerivedValue and when the top distance be equals half of the header, you execute your code. Can you share what you have tried?
In the end I managed to make it work, I leave an example of how I have done it.
thank you very much for your help! and hope my problem can help others.
I want that when I scroll halfway, execute a function, but I can't get that value, I'm testing with
const {top, height} = useHeaderMeasurements ();
And with react native animated, but I can't get it, any suggestions?Thanks!!
The text was updated successfully, but these errors were encountered: