temporary compatibility fix

This commit is contained in:
Keyan Zhang
2016-07-29 16:49:44 -07:00
parent 81f554817c
commit bba0d992d8
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,14 @@
/**
* Copyright 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ReactComponentTreeDevtool
*/
'use strict';
// TODO remove this proxy when RN/www gets updated
module.exports = require('ReactComponentTreeHook');
+4
View File
@@ -325,6 +325,10 @@ var ReactDebugTool = {
},
};
// TODO remove these when RN/www gets updated
ReactDebugTool.addDevtool = ReactDebugTool.addHook;
ReactDebugTool.removeDevtool = ReactDebugTool.removeHook;
ReactDebugTool.addHook(ReactInvalidSetStateWarningHook);
ReactDebugTool.addHook(ReactComponentTreeHook);
ReactDebugTool.addHook(ReactChildrenMutationWarningHook);