react-native/Libraries
Krzysztof Magiera 6c80f886ae Fix setValue to work properly on natively driven nodes
Summary:
This change fixes an issue with calling `setValue` for natively driven nodes. As of now an attempt to call this method from JS would trigger an error "Attempting to run JS driven animation on animated". That is because for natively animated nodes we don't allow for `setNativeProps` to be executed and method `_flush` is now responsible for triggering that call. To fix the issue we add extra flag to `_updateValue` method that indicates if we should be "flushing" updated values using `setNativeProps` and we pass an appropriate value depending on the status of the node (native/non-native). Note that in animation callback we always pass `true` - that is because natively driven animations will never call into that callback.

**Test Plan**
Run JS tests: `npm test Libraries/Animated/src/__tests__/AnimatedNative-test.js`
Closes https://github.com/facebook/react-native/pull/7138

Differential Revision: D3257696

fb-gh-sync-id: 13ec26bc36b56b3208f4279a95532bbe60551087
fbshipit-source-id: 13ec26bc36b56b3208f4279a95532bbe60551087
2016-05-04 02:48:22 -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
Animated Fix setValue to work properly on natively driven nodes 2016-05-04 02:48:22 -07:00
AppRegistry Fix some warnings. 2016-04-20 20:45:22 -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 Capture heap from the dev menu 2016-04-29 07:35:22 -07:00
BugReporting refactor BugReporting to use RCTDeviceEventEmitter 2016-04-22 11:24:40 -07:00
CameraRoll Corrected bug that put the UTI instead of mimeType in retrieved assets 2016-05-03 08:53:34 -07:00
Components Enable setting color of text and images on unselected tabs 2016-05-03 05:40:29 -07:00
CustomComponents Reduce extra rendering in NavigationCard 2016-05-03 13:31:18 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Device Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Devtools Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Experimental Refactor connection/list stuff 2016-04-30 10:28:55 -07:00
Fetch Reject promise if network request failed 2016-03-08 16:37:24 -08:00
Geolocation Copy comment from LocationModule.java to Geolocation.js 2016-04-13 07:53:23 -07:00
Image Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
Inspector Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Interaction Fix JSWatchdog reset 2016-05-03 19:20:26 -07:00
JavaScriptAppEngine Remove the need for allowTopLevelThis in transform-es2015-modules-commonjs 2016-04-29 16:15:34 -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 Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Modal Modal Animation Types 2016-04-28 16:00:32 -07:00
NativeApp Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
NavigationExperimental Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
Network Remove all null values for request headers 2016-05-03 23:42:26 -07:00
PullToRefresh Fix red screen due to ref being undefined in PullRefreshViewAndroid 2016-04-19 06:58:22 -07:00
PushNotificationIOS Added badge icon number and alert action 2016-04-29 05:37:27 -07:00
QuickPerformanceLogger
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 Remove the need for allowTopLevelThis in transform-es2015-modules-commonjs 2016-04-29 16:15:34 -07:00
Vibration Add support for vibration patterns 2016-03-29 21:45:20 -07:00
WebSocket Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
react-native Fix react-native.js.flow 2016-04-22 18:02:28 -07:00
vendor Remove ImmediateImplementation, always use globals 2016-04-28 07:06:20 -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