mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Inject react-art renderer into react-devtools (#13173)
* Inject react-art renderer into react-devtools This commit makes react-art renderer to be injected to react-devtools, so that component tree of the renderer is presented on debug panel of browser. * Update ReactART.js
This commit is contained in:
8
packages/react-art/src/ReactART.js
vendored
8
packages/react-art/src/ReactART.js
vendored
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import ReactVersion from 'shared/ReactVersion';
|
||||
import * as ARTRenderer from 'react-reconciler/inline.art';
|
||||
import Transform from 'art/core/transform';
|
||||
import Mode from 'art/modes/current';
|
||||
@@ -131,6 +132,13 @@ class Text extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
ARTRenderer.injectIntoDevTools({
|
||||
findFiberByHostInstance: () => null,
|
||||
bundleType: __DEV__ ? 1 : 0,
|
||||
version: ReactVersion,
|
||||
rendererPackageName: 'react-art',
|
||||
});
|
||||
|
||||
/** API */
|
||||
|
||||
export const ClippingRectangle = TYPES.CLIPPING_RECTANGLE;
|
||||
|
||||
Reference in New Issue
Block a user