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
..
2015-07-24 08:41:58 -08:00
2016-05-16 03:58:23 -07:00
2016-05-03 19:20:26 -07:00
2016-05-14 10:43:30 -07:00
2016-05-09 07:08:22 -07:00
2016-05-14 21:50:24 -07:00
2016-04-06 09:21:53 -07:00
2016-04-10 18:02:20 -07:00
2016-04-25 03:31:19 -07:00
2016-05-10 15:58:24 -07:00