From 772df790fcd6c281af58f88c8d4a61e4fb51fb8e Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Sun, 16 Oct 2016 13:01:12 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/animations.html | 5 ++++- releases/next/docs/cameraroll.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/releases/next/docs/animations.html b/releases/next/docs/animations.html index d9d278e3cdf..21b07eba1b1 100644 --- a/releases/next/docs/animations.html +++ b/releases/next/docs/animations.html @@ -85,7 +85,10 @@ back down to zero at 100 followed by a dead-zone that remains at 0 for everything beyond that, you could do:

value.interpolate({ inputRange: [-300, -100, 0, 100, 101], outputRange: [300, 0, 1, 0, 0], -});

Which would map like so:

InputOutput
-400450
-300300
-200150
-1000
-500.5
01
500.5
1000
1010
2000

interpolation also supports arbitrary easing functions, many of which are +});

Which would map like so:

InputOutput
-400450
-300300
-200150
-1000
-500.5
01
500.5
1000
1010
2000

interpolate also supports mapping to strings, allowing you to animate colors as well as values with units. For example, if you wanted to animate a rotation you could do:

value.interpolate({ + inputRange: [0, 360], + outputRange: ['0deg', '360deg'] +})

interpolation also supports arbitrary easing functions, many of which are already implemented in the Easing class including quadratic, exponential, and bezier curves as well as functions diff --git a/releases/next/docs/cameraroll.html b/releases/next/docs/cameraroll.html index 51b5ca75651..2b43a562538 100644 --- a/releases/next/docs/cameraroll.html +++ b/releases/next/docs/cameraroll.html @@ -19,7 +19,7 @@ const { TouchableOpacity } = ReactNative; -const invariant = require('invariant'); +const invariant = require('fbjs/lib/invariant'); const CameraRollView = require('./CameraRollView');