-
Notifications
You must be signed in to change notification settings - Fork 24.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for springs for NativeAnimated on iOS #9048
Conversation
Thank you for your pull request. As you may know, we require contributors to sign our Contributor License Agreement, and we don't seem to have you on file and listed as active anymore. In order for us to review and merge your code, please email cla@fb.com with your details so we can update your status. |
@ryangomba updated the pull request. |
1 similar comment
@ryangomba updated the pull request. |
Related PR: #8860 |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
cc @ritzau |
cc @janicduplessis. Do you know if anyone else is actively contributing to iOS native animations? (doesn't look like it, from the commit log). You're my go-to right now :) |
@javache Do you want someone from FB to have a look at the NativeAnimated PRs before shipping it? If not I can take care of them. |
@janicduplessis @ritzau is ramping up on a lot of the Animated stuff, he's out this week, so I'd prefer if he could take a look at this as well. |
@ryangomba Could you separate this into 4 different PRs? It will make the review process easier. |
@@ -15,6 +15,8 @@ @implementation RCTInterpolationAnimatedNode | |||
__weak RCTValueAnimatedNode *_parentNode; | |||
NSArray<NSNumber *> *_inputRange; | |||
NSArray<NSNumber *> *_outputRange; | |||
BOOL _clampLeft; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to work with #9366, you can revert the JS changes and assume that you will always get passed extrapolateLeft
and extrapolateRight
. Let's also add support for the identity
value (returns the input) to have full parity with JS.
It's been a while since the last commit was reviewed and the labels show this pull request needs review. Based on the blame information for the files in this pull request we identified @buba447 as a potential reviewer. Could you take a look please or cc someone with more context? |
987a771
to
d80d701
Compare
@ryangomba updated the pull request - view changes |
@ryangomba updated the pull request - view changes |
@janicduplessis I've addressed the issues caught above; this should be good to go! |
@ryangomba Looks like the build is failing for TVOS, it was added pretty recently and I don't know much about it. https://travis-ci.org/facebook/react-native/jobs/169298841#L6268. Maybe @dlowder-salesforce can help here. |
@ryangomba updated the pull request - view changes |
@janicduplessis should pass this time |
Summary: This diff adds support for clamping on iOS. It separates out code originally submitted in #9048. Test plan (required) Run UIExplorer NativeAnimated examples before and after - compare the results. Pay special attention to the new clamped spring example. Closes #9625 Differential Revision: D4053231 fbshipit-source-id: 29048de444ff5f6d7fe7dce7897399b483ee6d2d
@ryangomba One test is still failing but it looks unrelated probably just flacky. Can you rebase on master there is a conflict now because I merged your clamp PR. |
713884d
to
de8ffda
Compare
@ryangomba updated the pull request - view changes |
@janicduplessis @ryangomba the Apple TV issue is happening because RCTFrameAnimation.m and RCTSpringAnimation.m are included in the iOS target, but not in the tvOS target. So UIExplorer fails to link due to missing object files for those classes. |
@dlowder-salesforce right, it's fixed now |
Great! Thanks for your work on this @ryangomba, going to wait for CI then shipit. |
@facebook-github-bot shipit |
Summary: This diff adds support for native spring animations on iOS. This overlaps some spring work done by kmagiera on the Android side of things. **Test plan (required)** Run UIExplorer NativeAnimated examples before and after - compare the results. Pay special attention to the spring examples. Closes facebook#9048 Differential Revision: D4056088 Pulled By: foghina fbshipit-source-id: a593408cb61cb850572bab4a0884f7157cece656
Summary: This diff adds support for clamping on iOS. It separates out code originally submitted in facebook#9048. Test plan (required) Run UIExplorer NativeAnimated examples before and after - compare the results. Pay special attention to the new clamped spring example. Closes facebook#9625 Differential Revision: D4053231 fbshipit-source-id: 29048de444ff5f6d7fe7dce7897399b483ee6d2d
Summary: This diff adds support for native spring animations on iOS. This overlaps some spring work done by kmagiera on the Android side of things. **Test plan (required)** Run UIExplorer NativeAnimated examples before and after - compare the results. Pay special attention to the spring examples. Closes facebook#9048 Differential Revision: D4056088 Pulled By: foghina fbshipit-source-id: a593408cb61cb850572bab4a0884f7157cece656
Summary: This diff adds support for clamping on iOS. It separates out code originally submitted in facebook#9048. Test plan (required) Run UIExplorer NativeAnimated examples before and after - compare the results. Pay special attention to the new clamped spring example. Closes facebook#9625 Differential Revision: D4053231 fbshipit-source-id: 29048de444ff5f6d7fe7dce7897399b483ee6d2d
Summary: This diff adds support for native spring animations on iOS. This overlaps some spring work done by kmagiera on the Android side of things. **Test plan (required)** Run UIExplorer NativeAnimated examples before and after - compare the results. Pay special attention to the spring examples. Closes facebook#9048 Differential Revision: D4056088 Pulled By: foghina fbshipit-source-id: a593408cb61cb850572bab4a0884f7157cece656
Summary: This diff adds ModuloAnimatedNode on iOS. It separates out code originally submitted in facebook#9048. Test plan (required) Set up an animation with a modulo node, and `useNativeModule: true`. Compare results with `useNativeModule: false`. Closes facebook#9626 Differential Revision: D3799636 fbshipit-source-id: 594499f11be41bf3ee709249056a3feedeace9eb
This diff adds support for native spring animations on iOS. This overlaps some spring work done by @kmagiera on the Android side of things.
Test plan (required)
Run UIExplorer NativeAnimated examples before and after - compare the results. Pay special attention to the spring examples.