Enable section descriptors in Flipper from configDepends on D13803338/
Summary: as title Reviewed By: passy Differential Revision: D13803412 fbshipit-source-id: a9d511ca7d5466eb9b1f82f93b6c48879f0aa02e
This commit is contained in:
committed by
Facebook Github Bot
parent
e86a5166ad
commit
ec98c857c2
@@ -1,10 +1,16 @@
|
||||
// Copyright 2004-present Facebook. All Rights Reserved.
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
|
||||
* directory of this source tree.
|
||||
*/
|
||||
package com.facebook.flipper.plugins.litho;
|
||||
|
||||
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
|
||||
import com.facebook.litho.DebugComponent;
|
||||
import com.facebook.litho.LithoView;
|
||||
import com.facebook.litho.sections.debug.DebugSection;
|
||||
import com.facebook.litho.widget.LithoRecylerView;
|
||||
|
||||
public final class LithoFlipperDescriptors {
|
||||
|
||||
@@ -12,4 +18,10 @@ public final class LithoFlipperDescriptors {
|
||||
descriptorMapping.register(LithoView.class, new LithoViewDescriptor());
|
||||
descriptorMapping.register(DebugComponent.class, new DebugComponentDescriptor());
|
||||
}
|
||||
|
||||
public static void addWithSections(DescriptorMapping descriptorMapping) {
|
||||
add(descriptorMapping);
|
||||
descriptorMapping.register(LithoRecylerView.class, new LithoRecyclerViewDescriptor());
|
||||
descriptorMapping.register(DebugSection.class, new DebugSectionDescriptor());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user