react 15.0.2-alpha.2 → 15.0.2-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-with-addons.js +2 -2
- package/dist/react-with-addons.min.js +2 -2
- package/dist/react.js +2 -2
- package/dist/react.min.js +2 -2
- package/lib/ReactNativeDefaultInjection.js +0 -3
- package/lib/ReactNativeEventEmitter.js +5 -0
- package/lib/ReactVersion.js +1 -1
- package/package.json +1 -1
- package/lib/PanResponder.js +0 -362
- package/lib/ReactNativeGlobalInteractionHandler.js +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the BSD-style license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
|
-
*
|
|
9
|
-
* @providesModule ReactNativeGlobalInteractionHandler
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
'use strict';
|
|
13
|
-
|
|
14
|
-
var InteractionManager = require('InteractionManager');
|
|
15
|
-
|
|
16
|
-
// Interaction handle is created/cleared when responder is granted or
|
|
17
|
-
// released/terminated.
|
|
18
|
-
var interactionHandle = null;
|
|
19
|
-
|
|
20
|
-
var ReactNativeGlobalInteractionHandler = {
|
|
21
|
-
onChange: function (numberActiveTouches) {
|
|
22
|
-
if (numberActiveTouches === 0) {
|
|
23
|
-
if (interactionHandle) {
|
|
24
|
-
InteractionManager.clearInteractionHandle(interactionHandle);
|
|
25
|
-
interactionHandle = null;
|
|
26
|
-
}
|
|
27
|
-
} else if (!interactionHandle) {
|
|
28
|
-
interactionHandle = InteractionManager.createInteractionHandle();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
module.exports = ReactNativeGlobalInteractionHandler;
|