-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[Native-Animated] Support for Animated.add #6641
Conversation
By analyzing the blame information on this pull request, we identified @kmagiera to be a potential reviewer. |
__getNativeConfig(): any { | ||
return { | ||
type: 'addition', | ||
input: [this._a.__getNativeTag(), this._b.__getNativeTag()], |
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.
semi: Missing semicolon.
Thanks @facebook-github-bot, great job on finding potential reviewers! In addition I'd like to nominate @astreet if that's ok with you |
@kmagiera updated the pull request. |
@kmagiera updated the pull request. |
__getNativeConfig(): any { | ||
return { | ||
type: 'addition', | ||
input: [this._a.__getNativeTag(), this._b.__getNativeTag()], |
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.
semi: Missing semicolon.
3abee72
to
aca1065
Compare
@kmagiera updated the pull request. |
@@ -19,6 +19,10 @@ | |||
|
|||
/*package*/ double mValue = Double.NaN; | |||
|
|||
ValueAnimatedNode() { | |||
// empty constructor that can be used by subclasses |
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.
so... protected
then?
Can you remove the 'add unit tests' PR from this PR too? |
looks good otherwise |
This change adds suport native animated support for Animated.add. Animated.add lets you declare node that outputs a sum of it input nodes. **Test Plan** Play with the following playground app: https://gist.github.com/39de37faf07480fcd7d1 Run JS tests: `npm test Libraries/Animated/src/__tests__/AnimatedNative-test.js` Run java tests: `buck test ReactAndroid/src/test/java/com/facebook/react/animated`
aca1065
to
60015f6
Compare
@kmagiera updated the pull request. |
Alright. I've fixed package/protected attributes and rebase on top of master so that this PR has only one commit now. @facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
1 similar comment
Thanks for importing. If you are an FB employee go to Phabricator to review. |
Summary:This change adds suport native animated support for Animated.add. Animated.add lets you declare node that outputs a sum of it input nodes. **Test Plan** Play with the following playground app: https://gist.github.com/39de37faf07480fcd7d1 Run JS tests: `npm test Libraries/Animated/src/__tests__/AnimatedNative-test.js` Run java tests: `buck test ReactAndroid/src/test/java/com/facebook/react/animated` Closes facebook#6641 Differential Revision: D3195963 fb-gh-sync-id: bb1e1a36821a0e071ad0e7d0fa99ce0d6b088b0a fbshipit-source-id: bb1e1a36821a0e071ad0e7d0fa99ce0d6b088b0a
Summary:This change adds suport native animated support for Animated.add. Animated.add lets you declare node that outputs a sum of it input nodes. **Test Plan** Play with the following playground app: https://gist.github.com/39de37faf07480fcd7d1 Run JS tests: `npm test Libraries/Animated/src/__tests__/AnimatedNative-test.js` Run java tests: `buck test ReactAndroid/src/test/java/com/facebook/react/animated` Closes facebook#6641 Differential Revision: D3195963 fb-gh-sync-id: bb1e1a36821a0e071ad0e7d0fa99ce0d6b088b0a fbshipit-source-id: bb1e1a36821a0e071ad0e7d0fa99ce0d6b088b0a
Summary:This change adds suport native animated support for Animated.add. Animated.add lets you declare node that outputs a sum of it input nodes. **Test Plan** Play with the following playground app: https://gist.github.com/39de37faf07480fcd7d1 Run JS tests: `npm test Libraries/Animated/src/__tests__/AnimatedNative-test.js` Run java tests: `buck test ReactAndroid/src/test/java/com/facebook/react/animated` Closes facebook#6641 Differential Revision: D3195963 fb-gh-sync-id: bb1e1a36821a0e071ad0e7d0fa99ce0d6b088b0a fbshipit-source-id: bb1e1a36821a0e071ad0e7d0fa99ce0d6b088b0a
This change adds suport native animated support for Animated.add.
Animated.add lets you declare node that outputs a sum of it input nodes.
Test Plan
Play with the following playground app: https://gist.github.com/39de37faf07480fcd7d1
Run JS tests:
npm test Libraries/Animated/src/__tests__/AnimatedNative-test.js
Run java tests:
buck test ReactAndroid/src/test/java/com/facebook/react/animated