react-native/Libraries
Sean Kelley 908041b80b Round alpha channel when interpolating colors to the nearest thousandth.
Summary:
This fixes an issue where animations for values near zero could end up formatted
with exponents (e.g. `1.452e-10`), which is not valid for an `rgba` color spec.
This commit arbitrarily rounds it to the nearest thousandth to prevent this type
of formatting while still maintaining high-enough resolution in the alpha channel.

One way this could bubble up to the user is as PropType validation failures:

```
Failed propType: Invalid prop `backgroundColor` supplied to `RCTView`: rgba(0, 0, 0, 9.838983123336224e-7)
```
Closes https://github.com/facebook/react-native/pull/7597

Differential Revision: D3310941

Pulled By: vjeux

fbshipit-source-id: 0c95facaef5b69c021662af9fb6f268d890ecc3e
2016-05-17 10:13:29 -07:00
..
ART Check if either array is null before diffing 2016-04-25 13:28:31 -07:00
ActionSheetIOS CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated Round alpha channel when interpolating colors to the nearest thousandth. 2016-05-17 10:13:29 -07:00
AppRegistry Add support for dumping current React hierarchy 2016-05-16 07:28:29 -07:00
AppState Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
AppStateIOS Updating AppState to support the inactive state. 2016-03-10 08:30:24 -08:00
BatchedBridge Memoize lazy module configs 2016-05-16 03:58:23 -07:00
BugReporting Don't barf if property throws 2016-05-17 05:13:24 -07:00
CameraRoll Callback with image height and width from IOSImagePicker 2016-05-16 11:13:23 -07:00
Components Fix typo in ViewPagerAndroid.android.js 2016-05-13 11:58:23 -07:00
CustomComponents Fix List View _updateVisibleRows firing for all row component at view loading time issue 2016-05-16 18:28:21 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Devtools Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter Fixed NativeEventListener deregistration 2016-05-16 04:13:56 -07:00
Experimental Full width styling for quick actions 2016-05-17 01:43:27 -07:00
Fetch Reject promise if network request failed 2016-03-08 16:37:24 -08:00
Geolocation Fix distanceFilter caching for LocationObserver 2016-05-04 10:35:30 -07:00
Image Fix tintColor prop platform in Image 2016-05-09 15:29:24 -07:00
Inspector Move UI-specific logic from NativeModules to UIManager 2016-05-09 08:21:19 -07:00
Interaction Fix JSWatchdog reset 2016-05-03 19:20:26 -07:00
JavaScriptAppEngine Fix source map utils 2016-05-14 10:43:30 -07:00
LayoutAnimation Add support for delete animation in LayoutAnimation on iOS 2016-04-25 00:19:25 -07:00
Linking Mention native code in `Linking` docs 2016-04-20 19:23:19 -07:00
LinkingIOS Added explicit init to observer modules 2016-05-04 07:07:24 -07:00
Modal Modal Status Bar Translucent 2016-05-09 07:08:22 -07:00
NavigationExperimental Reverted commit D3278698 2016-05-12 18:58:45 -07:00
Network Add comments on NetInfo.js 2016-05-14 21:50:24 -07:00
PullToRefresh Adds progressViewOffset to RefreshControl 2016-05-09 01:51:22 -07:00
PushNotificationIOS Added explicit init to observer modules 2016-05-04 07:07:24 -07:00
QuickPerformanceLogger added QPL for main interactions 2015-09-29 22:25:23 -07:00
RCTTest CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
RKBackendNode Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
ReactIOS Fix or suppress errors in react-native 2016-04-21 19:47:24 -07:00
ReactNative Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Sample Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Settings Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Storage Update AsyncStorage.js 2016-04-10 18:02:20 -07:00
StyleSheet Deprecate transformMatrix and decomposedMatrix 2016-04-29 14:19:25 -07:00
Text Removed placeholder image logic 2016-04-25 03:31:19 -07:00
Utilities Update to React 15.1.0-alpha.1 2016-05-10 15:58:24 -07:00
Vibration Add support for vibration patterns 2016-03-29 21:45:20 -07:00
WebSocket Updated Websocket to use new event system 2016-05-12 08:30:24 -07:00
react-native Update to React 15.1.0-alpha.1 2016-05-10 15:58:24 -07:00
vendor Fixed NativeEventListener deregistration 2016-05-16 04:13:56 -07:00
Promise.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
promiseRejectionIsError.js Add possibility to `console.error`/redbox on promise rejections 2016-03-15 05:22:22 -07:00