react-native/Libraries
Kevin Gozali 0a0dd30c6a Introduced AnimatedDivision
Summary:
Combining 2 animated values via addition, multiplication, and modulo are already supported, and this adds another one: division.
There are some cases where an animated value needs to invert (1 / x) another animated value for calculation. An example is inverting a scale (2x --> 0.5x), e.g.:

```
const a = Animated.Value(1);
const b = Animated.divide(1, a);

Animated.spring(a, {
  toValue: 2,
}).start();
```

`b` will then follow `a`'s spring animation and produce the value of `1 / a`.

The basic usage is like this:

```
<Animated.View style={{transform: [{scale: a}]}}>
  <Animated.Image style={{transform: [{scale: b}]}} />
<Animated.View>
```

In this example, the inner image won't get stretched at all because the parent's scaling gets cancelled out.

Also added this to native animated implementation.

Reviewed By: foghina, mmmulani

Differential Revision: D3922891

fbshipit-source-id: 32508956c4b65b2deb7574d50a10c85b4809b961
2016-09-26 16:43:51 -07:00
..
ART Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
ActionSheetIOS ActionSheetIOS - Pass URL, not file contents to UIActivityViewController for file URLs. 2016-09-06 04:43:36 -07:00
AdSupport Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Animated Introduced AnimatedDivision 2016-09-26 16:43:51 -07:00
AppRegistry Auto-fix lint errors 2016-08-09 06:43:46 -07:00
AppState Auto-fix lint errors 2016-08-09 06:43:46 -07:00
BatchedBridge Extract native module logic from BatchedBridge 2016-09-23 11:14:11 -07:00
BugReporting Unrevert D3518381 2016-07-06 12:58:41 -07:00
CameraRoll Add partial image loading to RCTImageView 2016-09-21 12:14:09 -07:00
Components BREAKING - Fix unconstraint sizing in main axis 2016-09-26 06:13:56 -07:00
CustomComponents Remove unnecessary double test in Navigator 2016-09-26 01:43:41 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Devtools Get server host in setupDevtools for Android 2016-07-19 05:58:29 -07:00
EventEmitter Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Experimental Remove unused state variable 2016-09-23 10:28:40 -07:00
Fetch Fixed what fetch.js exports 2016-07-14 11:13:27 -07:00
Geolocation RCTLocationObserver: Fix reporting of timeout error 2016-09-21 14:28:43 -07:00
Image FIX #9751 - Cancelling offscreen image loads causing crashes 2016-09-21 14:28:43 -07:00
Inspector Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Interaction Add missing return, FIX #9886 2016-09-15 22:43:36 -07:00
JavaScriptAppEngine Fix symbolication outside of chrome debugging 2016-09-19 10:58:40 -07:00
LayoutAnimation Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Linking Auto-fix lint errors 2016-08-09 06:43:46 -07:00
LinkingIOS Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Modal Allow <Modal /> to be presented in different orientations 2016-09-07 13:10:11 -07:00
NativeAnimation Introduced AnimatedDivision 2016-09-26 16:43:51 -07:00
NavigationExperimental Clean up unused mock for NavigationRootContainer 2016-09-18 17:58:38 -07:00
Network XMLHttpRequest.getAllResponseHeaders should use CRLF 2016-09-23 16:28:56 -07:00
PermissionsAndroid Docs fix: remove confusing typo 2016-09-19 14:46:12 -07:00
PushNotificationIOS registration error event 2016-09-06 11:13:40 -07:00
QuickPerformanceLogger AdsManager now uses new react native QPL identifiers 2016-07-20 07:28:36 -07:00
RCTTest Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
RKBackendNode Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
ReactIOS Deploy v0.32.0 2016-09-06 13:43:47 -07:00
ReactNative Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Sample Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Settings Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
Share Add Share module 2016-07-25 03:43:29 -07:00
Storage Auto-fix lint errors 2016-08-09 06:43:46 -07:00
StyleSheet BREAKING - Fix unconstraint sizing in main axis 2016-09-26 06:13:56 -07:00
Text Include CSSLayout.h consistently with other project includes 2016-09-06 09:13:39 -07:00
Utilities Extract native module logic from BatchedBridge 2016-09-23 11:14:11 -07:00
Vibration Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
WebSocket Updating Websocket readyState in case of websocketFailed event 2016-09-08 17:13:45 -07:00
react-native Remove react-native.js.flow 2016-09-14 02:58:40 -07:00
vendor Cleanup clear/set/throwImmediate 2016-08-12 07:28:38 -07:00
Promise.js Make onUnhandled safe for undefined errors 2016-08-02 07:58:28 -07:00
promiseRejectionIsError.js Add possibility to `console.error`/redbox on promise rejections 2016-03-15 05:22:22 -07:00