@samitouri / QOS-React / commits / e7bd3d59a9

No longer expose ReactNativeComponentTree (#12904)

Sebastian Markbåge committed May 25, 2018 at 21:17 UTC e7bd3d59a9502b4727982087b70d82693ebde7d8
4 files changed -24
packages/react-native-renderer/src/ReactFabric.js
-2
@@ -116,8 +116,6 @@ const ReactFabric: ReactFabricType = {
116 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
117 // Used as a mixin in many createClass-based components
118 NativeMethodsMixin: NativeMethodsMixin(findNodeHandle, findHostInstance),
119 - // Used by react-native-github/Libraries/ components
120 - ReactNativeComponentTree, // ScrollResponder
119 },
120 };
121
packages/react-native-renderer/src/ReactNativeRenderer.js
-2
@@ -138,8 +138,6 @@ const ReactNativeRenderer: ReactNativeType = {
138 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
139 // Used as a mixin in many createClass-based components
140 NativeMethodsMixin: NativeMethodsMixin(findNodeHandle, findHostInstance),
141 - // Used by react-native-github/Libraries/ components
142 - ReactNativeComponentTree, // ScrollResponder
141 computeComponentStackForErrorReporting,
142 },
143 };
packages/react-native-renderer/src/ReactNativeTypes.js
-2
@@ -89,7 +89,6 @@ export type NativeMethodsMixinType = {
89
90 type SecretInternalsType = {
91 NativeMethodsMixin: NativeMethodsMixinType,
92 - ReactNativeComponentTree: any,
92 computeComponentStackForErrorReporting(tag: number): string,
93 // TODO (bvaughn) Decide which additional types to expose here?
94 // And how much information to fill in for the above types.
@@ -97,7 +96,6 @@ type SecretInternalsType = {
96
97 type SecretInternalsFabricType = {
98 NativeMethodsMixin: NativeMethodsMixinType,
100 - ReactNativeComponentTree: any,
99 };
100
101 /**
scripts/rollup/shims/react-native/ReactNativeComponentTree.js deleted
-18
@@ -1,18 +0,0 @@
1 -/**
2 - * Copyright (c) 2013-present, Facebook, Inc.
3 - *
4 - * This source code is licensed under the MIT license found in the
5 - * LICENSE file in the root directory of this source tree.
6 - *
7 - * @format
8 - * @flow
9 - */
10 -
11 -'use strict';
12 -
13 -const {
14 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
15 -} = require('ReactNative');
16 -
17 -module.exports =
18 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactNativeComponentTree;