@samitouri / QOS-React / commits / 6c885d28c5

Remove duplicates and move files out of native/vendor

Moving the event plugins into their dedicated folder Removing the ExecutionEnvironment override. I will just have to fix where needed. Probably related to the Chrome debugger?

Sebastian Markbage committed Mar 24, 2016 at 15:47 UTC 6c885d28c51ea30af0d8a4031dedcea98ef4114c
8 files changed -129
src/renderers/native/NodeHandle/NodeHandle.js renamed
src/renderers/native/NodeHandle/UniversalWorkerNodeHandle.js renamed
src/renderers/native/ReactNative/React.js deleted
-14
@@ -1,14 +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 React
10 - * @flow
11 - */
12 -'use strict';
13 -
14 -module.exports = require('ReactNative');
src/renderers/native/ReactNative/ReactDOM.js deleted
-16
@@ -1,16 +0,0 @@
1 -/**
2 - * Copyright 2004-present Facebook. All Rights Reserved.
3 - *
4 - * @providesModule ReactDOM
5 - */
6 -
7 -'use strict';
8 -
9 -var ReactUpdates = require('ReactUpdates');
10 -
11 -// Temporary shim required for ReactTestUtils and Relay.
12 -var ReactDOM = {
13 - unstable_batchedUpdates: ReactUpdates.batchedUpdates,
14 -};
15 -
16 -module.exports = ReactDOM;
src/renderers/native/vendor/react/vendor/core/ExecutionEnvironment.android.js deleted
-51
@@ -1,51 +0,0 @@
1 -/**
2 - * Copyright 2013-2014 Facebook, Inc.
3 - *
4 - * Licensed under the Apache License, Version 2.0 (the "License");
5 - * you may not use this file except in compliance with the License.
6 - * You may obtain a copy of the License at
7 - *
8 - * http://www.apache.org/licenses/LICENSE-2.0
9 - *
10 - * Unless required by applicable law or agreed to in writing, software
11 - * distributed under the License is distributed on an "AS IS" BASIS,
12 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 - * See the License for the specific language governing permissions and
14 - * limitations under the License.
15 - *
16 - * @providesModule ExecutionEnvironment
17 - *
18 - * NB: This is a temporary override that has not yet been merged upstream. It is NOT actually part
19 - * of react-core (yet)
20 - *
21 - * Stubs SignedSource<<7afee88a05412d0c4eef54817419648e>>
22 - */
23 -
24 -/*jslint evil: true */
25 -
26 -"use strict";
27 -
28 -var canUseDOM = false;
29 -
30 -/**
31 - * Simple, lightweight module assisting with the detection and context of
32 - * Worker. Helps avoid circular dependencies and allows code to reason about
33 - * whether or not they are in a Worker, even if they never include the main
34 - * `ReactWorker` dependency.
35 - */
36 -var ExecutionEnvironment = {
37 -
38 - canUseDOM: canUseDOM,
39 -
40 - canUseWorkers: typeof Worker !== 'undefined',
41 -
42 - canUseEventListeners:
43 - canUseDOM && !!(window.addEventListener || window.attachEvent),
44 -
45 - canUseViewport: canUseDOM && !!window.screen,
46 -
47 - isInWorker: !canUseDOM // For now, this is true - might change in the future.
48 -
49 -};
50 -
51 -module.exports = ExecutionEnvironment;
src/renderers/native/vendor/react/vendor/core/ExecutionEnvironment.ios.js deleted
-48
@@ -1,48 +0,0 @@
1 -/**
2 - * Copyright 2013-2014 Facebook, Inc.
3 - *
4 - * Licensed under the Apache License, Version 2.0 (the "License");
5 - * you may not use this file except in compliance with the License.
6 - * You may obtain a copy of the License at
7 - *
8 - * http://www.apache.org/licenses/LICENSE-2.0
9 - *
10 - * Unless required by applicable law or agreed to in writing, software
11 - * distributed under the License is distributed on an "AS IS" BASIS,
12 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 - * See the License for the specific language governing permissions and
14 - * limitations under the License.
15 - *
16 - * @providesModule ExecutionEnvironment
17 - *
18 - * Stubs SignedSource<<7afee88a05412d0c4eef54817419648e>>
19 - */
20 -
21 -/*jslint evil: true */
22 -
23 -"use strict";
24 -
25 -var canUseDOM = false;
26 -
27 -/**
28 - * Simple, lightweight module assisting with the detection and context of
29 - * Worker. Helps avoid circular dependencies and allows code to reason about
30 - * whether or not they are in a Worker, even if they never include the main
31 - * `ReactWorker` dependency.
32 - */
33 -var ExecutionEnvironment = {
34 -
35 - canUseDOM: canUseDOM,
36 -
37 - canUseWorkers: typeof Worker !== 'undefined',
38 -
39 - canUseEventListeners:
40 - canUseDOM && !!(window.addEventListener || window.attachEvent),
41 -
42 - canUseViewport: canUseDOM && !!window.screen,
43 -
44 - isInWorker: !canUseDOM // For now, this is true - might change in the future.
45 -
46 -};
47 -
48 -module.exports = ExecutionEnvironment;
src/renderers/shared/event/eventPlugins/PanResponder.js renamed
src/renderers/shared/event/eventPlugins/TouchHistoryMath.js renamed