react-native/Libraries
Janic Duplessis 5590b1b5ad Split up AnimatedImplementation.js
Summary:
AnimatedImplementation.js is getting pretty hard to navigate and reason about so I split it up into different modules. Also took the opportunity to run prettier on that code and do some minor const/let refactorings. This doesn't change any logic, mostly just moves code around and add proper imports / exports.

This opens the door for further cleanup and flow type improvements but want to keep this already big PR as small as possible.

Discussion points:
- Should I use haste for this? Animated is pretty much a standalone module, it still uses a few haste imports but for new modules I used commonjs imports to avoid polluting the haste global namespace too much. The new modules are all internal to Animated and should not be imported externally.
- We're using `requestAnimationFrame` from fbjs instead of the one available globally in RN and browsers is there a reason for that?
- Should we even support web in this implementation? There is a standalone repo that exist for Animated web. Is this implementation of Animated web used internally at facebook?
- Probably still related to web, we used some weird Set polyfill is that still needed?

Notes:
There is a small regression for docs where the type of some classes that are exported like AnimatedValue show up as CallExpression instead if Class.

<img width="655" alt="screen shot 2017-08-14 at 3 19 18 am" src="https://user-images.githubusercontent.com/2677334/29261820-8f243036-809f-11e7-8bf0-0fe9f93939ca.png">

**Test plan**
Tested that all Animated related examples still work in RNTester on iOS and Android.
Tested that the doc is still working
Ran unit tests
Closes https://github.com/facebook/react-native/pull/15485

Differential Revision: D5679886

Pulled By: sahrens

fbshipit-source-id: d3e9b6987ab5ff2cd20108c3b9d860c7536be8a0
2017-08-22 18:01:20 -07:00
..
ART Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
ActionSheetIOS Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
Alert Export Alert's type ButtonsArray for external use 2017-03-06 12:44:47 -08:00
Animated Split up AnimatedImplementation.js 2017-08-22 18:01:20 -07:00
AppState Avoid race condition for AppState.currentState 2017-08-18 13:14:59 -07:00
BatchedBridge Increase information logged to MessageQueue.spy 2017-07-31 06:16:41 -07:00
Blob Configure requiresMainQueueSetup for core modules 2017-08-07 07:04:36 -07:00
BugReporting Patch up for future React Sync 2017-02-08 14:50:43 -08:00
CameraRoll Fetching video length 2017-08-15 11:41:27 -07:00
Components Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Core Expose "register devtools plugin" interface globally in React-Native 2017-08-15 12:03:40 -07:00
EventEmitter Breaking - make RCTDeviceEventEmitter warnings fatal 2017-07-24 03:47:59 -07:00
Experimental Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Geolocation Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
Image Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Inspector Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Interaction Increase information logged to MessageQueue.spy 2017-07-31 06:16:41 -07:00
JSInspector Add Network agent 2016-11-02 12:29:15 -07:00
LayoutAnimation Fix prop-types warning in LayoutAnimation 2017-05-12 15:06:17 -07:00
Linking Docs: fix typo in deeplinking docs 2017-07-26 07:18:44 -07:00
LinkingIOS Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
Lists Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Modal Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
NativeAnimation Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
Network Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
Performance Gate more code with if (__DEV__) { } 2017-08-14 07:19:00 -07:00
PermissionsAndroid Update documentation for PermissionsAndroid 2017-08-16 15:01:51 -07:00
PushNotificationIOS Fix flowtype errors for PushNotificationIOS 2017-08-14 12:03:18 -07:00
RCTTest Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
ReactNative Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Renderer Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Sample Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
Settings Fix infinite recursion in RCTSettingsManager init 2017-08-09 09:39:40 -07:00
Share Flowify Process Color 2017-04-26 11:31:56 -07:00
Storage correctly order ASyncStorage 2017-02-21 15:18:40 -08:00
StyleSheet Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Text Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
Utilities Cleanup stray markdown files, update contributing guidelines 2017-08-04 16:18:01 -07:00
Vibration Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
WebSocket Force the debugger to disconnect before a bundle reload 2017-08-14 08:16:52 -07:00
fishhook Merge fishhook.xcodeproj in RCTWebSocket 2017-08-09 07:48:09 -07:00
polyfills Use proper script way to clone Emoji files from www 2017-08-21 16:29:39 -07:00
react-native Breaking - Remove AdSupportIOS 2017-07-26 13:32:41 -07:00
vendor gets Relay/Classic/Compat building 2017-07-24 21:39:00 -07:00
.eslintrc Disallow trailing commas in react-native-github 2017-08-17 16:20:04 -07:00
Promise.js Don't require prettyFormat in every single bundle. 2017-06-16 04:31:56 -07:00
promiseRejectionIsError.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00