Closed JesperLekland closed 6 years ago
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.54?
Thank you for your contributions.
@react-native-bot Yes! This is reproducible on both versions of React Native. My own project uses 0.53.3 but the Snack is on the latest version. I've updated the issue to reflect this
0.54 is the latest version, and Snack lags stable releases, so the Old Version label is accurate in this case.
Tagging as a Stack Overflow question as this looks like a request for help in implementing a particular animation.
This issue looks like a question that would be best asked on Stack Overflow.
Stack Overflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.
Will close this as this is really a question that should be asked on Stack Overflow.
@hramos I've obviously phrased this the wrong way (tried to sneak a question in there 😅), I wanted to clearly state my reasoning for having more than one "mapping". The bug I want to report still exists however. An Animated.Event
accepts an array of mappings but as far as I can tell it only actually maps the source to the first mapping in the array. Therefore I request this issue to be reopened. Or should I open a new one with better phrasing?
This issue looks like a question that would be best asked on Stack Overflow.
Stack Overflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.
Will close this as this is really a question that should be asked on Stack Overflow.
@hramos Seems like we have a conflict with the @react-native-bot
@JesperLekland did you find any solution to this? Facing the same and don't seem to find anything helpful.
I have a ScrollView that animates pager style dots on each "page scroll". This works perfectly fine with an
Animated.event
withuseNativeDriver: true
. Now I want to animate something outside of the ScrollView but still based on its scroll value, i.e pass in anonScroll
prop. I can't for the life of me figure out how to combine the inneronScroll
(the one that I use to animate the pager style dots) with the one passed in through props.Using
Animated.event
withoutuseNativeDriver
allows me to call both events with the event passed back through theScrollView
sonScroll
but settinguseNativeDriver
to true kills that option (it's no longer a function).So my second options was to try to combine the two
Animated.event
s into one, here I noticed that only the first mapping in the first argument toAnimated.event
is actually used. I'm assuming this is a bug based on what the documentation states. If you're not supposed to combine the values that way, then how would I go about solving my problem? See the snack for a minimal reproducible demo of the problem.Environment
Steps to Reproduce
https://snack.expo.io/HJ1IUnP9z. Run the app, open the
logs
tab and scroll in the ScrollView, only one value is updated.Expected Behavior
I would expect the "outer scroll" in the expo snack to log the same values as the inner scroll.
Actual Behavior
Only the inner animated value is updated through the native event