From fa10796d0b9178f6d9bc9d86d5a6a5f1ccc80d7c Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Fri, 5 Apr 2019 13:49:27 -0700 Subject: [PATCH] Cleanup native anim example Summary: Makes things a little more clear. Reviewed By: TheSavior, yungsters Differential Revision: D14790256 fbshipit-source-id: 42e47487adfd48b8de5e987ac0e73a128a200824 --- RNTester/js/NativeAnimationsExample.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/RNTester/js/NativeAnimationsExample.js b/RNTester/js/NativeAnimationsExample.js index 30f47ae22..1bb71002b 100644 --- a/RNTester/js/NativeAnimationsExample.js +++ b/RNTester/js/NativeAnimationsExample.js @@ -220,24 +220,26 @@ class EventExample extends React.Component<{}, $FlowFixMeState> { }; render() { - const opacity = this.state.scrollX.interpolate({ - inputRange: [0, 200], - outputRange: [1, 0], - }); return ( { width: 600, backgroundColor: '#eee', justifyContent: 'center', + paddingLeft: 100, }}> - Scroll me! + Scroll me sideways! @@ -637,7 +640,7 @@ exports.examples = [ }, }, { - title: 'Drive custom property', + title: 'Drive custom property (tap to animate)', render: function() { return (