mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 11:16:06 +08:00
allow inspector to show if not Systrace profiling
Reviewed By: gaearon Differential Revision: D5060716 fbshipit-source-id: 9a00f80be8ef28da37d7aa672a4c0805182c1582
This commit is contained in:
committed by
Facebook Github Bot
parent
65aaa9c045
commit
28c07f8698
@@ -52,7 +52,7 @@ class AppContainer extends React.Component {
|
||||
|
||||
componentDidMount(): void {
|
||||
if (__DEV__) {
|
||||
if (global.__RCTProfileIsProfiling) {
|
||||
if (!global.__RCTProfileIsProfiling) {
|
||||
this._subscription = RCTDeviceEventEmitter.addListener(
|
||||
'toggleElementInspector',
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user