mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-06 17:52:57 +08:00
Change "Hide/Show" Inspector to "Toggle"
Summary:The JS and native state can get out of sync if you reload JS while inspecting, so don't even bother trying on native. Reviewed By: lexs Differential Revision: D3203020 fb-gh-sync-id: a3b7294bb0c28c0508f508be53d3ef895a7195b0 fbshipit-source-id: a3b7294bb0c28c0508f508be53d3ef895a7195b0
This commit is contained in:
committed by
Facebook Github Bot 2
parent
91dcc9ac8e
commit
47dff23fe4
@@ -296,9 +296,7 @@ public class DevSupportManagerImpl implements DevSupportManager {
|
||||
}
|
||||
});
|
||||
options.put(
|
||||
mDevSettings.isElementInspectorEnabled()
|
||||
? mApplicationContext.getString(R.string.catalyst_element_inspector_off)
|
||||
: mApplicationContext.getString(R.string.catalyst_element_inspector),
|
||||
mApplicationContext.getString(R.string.catalyst_element_inspector),
|
||||
new DevOptionHandler() {
|
||||
@Override
|
||||
public void onOptionSelected() {
|
||||
|
||||
Reference in New Issue
Block a user