Delete ReactNativeGlobalInteractionHandler.js
Depends on https://github.com/facebook/react/pull/6584 to no longer reference is. See FB task #10926500
Spencer Ahrens committed
Apr 22, 2016 at 16:53 UTC
63fbc3f72e261231ec2d78ee5b0f620fddc79224
1 file changed
-33
src/renderers/native/ReactNative/ReactNativeGlobalInteractionHandler.js
deleted
-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
- * @flow
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: number) {
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;