Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

ryangomba
Copy link
Contributor

@ryangomba ryangomba commented Jul 27, 2016

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.

@ghost
Copy link

ghost commented Jul 27, 2016

By analyzing the blame information on this pull request, we identified @buba447 and @spicyj to be potential reviewers.

@ghost
Copy link

ghost commented Jul 27, 2016

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 ryangomba changed the title NativeAnimation additions for iOS [NativeAnimation] Additions for iOS Jul 27, 2016
@ghost
Copy link

ghost commented Jul 27, 2016

@ryangomba updated the pull request.

1 similar comment
@ghost
Copy link

ghost commented Jul 27, 2016

@ryangomba updated the pull request.

@ryangomba ryangomba changed the title [NativeAnimation] Additions for iOS [NativeAnimation] Springs, Modulo, extrapolation, offsets for iOS Jul 27, 2016
@oblador
Copy link
Contributor

oblador commented Jul 31, 2016

Related PR: #8860

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 2, 2016
@ghost
Copy link

ghost commented Aug 2, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@javache
Copy link
Member

javache commented Aug 3, 2016

cc @ritzau

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 3, 2016
@ryangomba
Copy link
Contributor Author

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 :)

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 3, 2016
@janicduplessis
Copy link
Contributor

@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.

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 3, 2016
@javache
Copy link
Member

javache commented Aug 4, 2016

@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.

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 4, 2016
@janicduplessis
Copy link
Contributor

@ryangomba Could you separate this into 4 different PRs? It will make the review process easier.

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 12, 2016
@@ -15,6 +15,8 @@ @implementation RCTInterpolationAnimatedNode
__weak RCTValueAnimatedNode *_parentNode;
NSArray<NSNumber *> *_inputRange;
NSArray<NSNumber *> *_outputRange;
BOOL _clampLeft;
Copy link
Contributor

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.

@ghost
Copy link

ghost commented Aug 27, 2016

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?

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 27, 2016
@ryangomba ryangomba changed the title [NativeAnimation] Springs, Modulo, extrapolation, offsets for iOS [NativeAnimation][iOS] Springs Aug 28, 2016
@ghost
Copy link

ghost commented Aug 28, 2016

@ryangomba updated the pull request - view changes

@ghost ghost added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 28, 2016
@facebook-github-bot
Copy link
Contributor

@ryangomba updated the pull request - view changes

@ryangomba
Copy link
Contributor Author

@janicduplessis I've addressed the issues caught above; this should be good to go!

@janicduplessis
Copy link
Contributor

@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.

@facebook-github-bot
Copy link
Contributor

@ryangomba updated the pull request - view changes

@ryangomba
Copy link
Contributor Author

@janicduplessis should pass this time

@ryangomba ryangomba changed the title [NativeAnimation][iOS] Springs Add support for springs for NativeAnimated on iOS Oct 20, 2016
facebook-github-bot pushed a commit that referenced this pull request Oct 20, 2016
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
@janicduplessis
Copy link
Contributor

@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.

@facebook-github-bot
Copy link
Contributor

@ryangomba updated the pull request - view changes

@douglowder
Copy link
Contributor

@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.

@ryangomba
Copy link
Contributor Author

@dlowder-salesforce right, it's fixed now

@janicduplessis
Copy link
Contributor

Great! Thanks for your work on this @ryangomba, going to wait for CI then shipit.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 21, 2016
@janicduplessis
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot facebook-github-bot added GH Review: accepted Import Started This pull request has been imported. This does not imply the PR has been approved. CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. and removed GH Review: review-needed labels Oct 21, 2016
ryangomba added a commit to evenco/react-native that referenced this pull request Oct 21, 2016
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
@ryangomba ryangomba deleted the native-animation-additions branch October 21, 2016 15:12
ryangomba added a commit to evenco/react-native that referenced this pull request Oct 21, 2016
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
ryangomba added a commit to evenco/react-native that referenced this pull request Oct 21, 2016
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
ide pushed a commit to expo/react-native that referenced this pull request Oct 27, 2016
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
ide pushed a commit to expo/react-native that referenced this pull request Oct 27, 2016
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
ide pushed a commit to expo/react-native that referenced this pull request Oct 27, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved. Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants