mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 17:30:38 +08:00
Update dev menu to keep track of element inspector.
Summary: This PR makes the android dev menu consistent with iOS where toggling the inspector will update the button label accordingly. Closes https://github.com/facebook/react-native/pull/4628 Reviewed By: svcscm Differential Revision: D2740549 Pulled By: mkonicek fb-gh-sync-id: 02458d09b84e1592dcf245290ee2bbfb2863060d
This commit is contained in:
committed by
facebook-github-bot-3
parent
d0de0767e3
commit
c74d6403f5
@@ -10,9 +10,6 @@ package com.facebook.react.testing;
|
||||
|
||||
import com.facebook.react.modules.debug.DeveloperSettings;
|
||||
|
||||
/**
|
||||
* Default ReactSettings for tests.
|
||||
*/
|
||||
public class ReactSettingsForTests implements DeveloperSettings {
|
||||
|
||||
@Override
|
||||
@@ -29,4 +26,9 @@ public class ReactSettingsForTests implements DeveloperSettings {
|
||||
public boolean isJSDevModeEnabled() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isElementInspectorEnabled() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user