Janic Duplessis 2b49eddcfd Fix initial value of native Animated.Value
Summary:
Native Animated.Value uses the value it was created with when sending the config to native but this causes issue when the value has changed before calling `__makeNative` this happens with the `progress` value for `NavigationExperimental`. It gets initialized with value 1, then uses `setValue` to change it to 0 before starting the animation and this is when `__makeNative` is called. This simply uses the current value instead of the value passed to the constructor. Also pass offset so native implementations that support it can use it (iOS).

**Test plan**
Tested that the first transition that uses the `progress` animated value is not broken in an app that uses `NavigationExperimental` when using `useNativeDriver` for animations.
Closes https://github.com/facebook/react-native/pull/10656

Differential Revision: D4107624

fbshipit-source-id: 921cf4a3422cf91923bc315fd7a15c508becddae
2016-10-31 20:43:44 -07:00
..
2016-10-14 08:13:55 -07:00
2016-10-11 10:14:28 -07:00
2016-07-06 12:58:41 -07:00
2016-10-29 13:59:02 -07:00
2016-10-11 10:14:28 -07:00
2016-10-12 19:28:42 -07:00
2016-10-16 11:13:40 -07:00
2016-10-11 08:13:39 -07:00
2016-08-09 06:43:46 -07:00
2016-10-16 04:13:42 -07:00
2016-10-11 10:14:28 -07:00
2016-07-25 03:43:29 -07:00
2016-08-09 06:43:46 -07:00
2016-08-12 07:28:38 -07:00