diff --git a/android/src/main/java/com/facebook/flipper/plugins/litho/LithoFlipperDescriptors.java b/android/src/main/java/com/facebook/flipper/plugins/litho/LithoFlipperDescriptors.java index 2e0809210..80d67470f 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/litho/LithoFlipperDescriptors.java +++ b/android/src/main/java/com/facebook/flipper/plugins/litho/LithoFlipperDescriptors.java @@ -1,10 +1,16 @@ -// Copyright 2004-present Facebook. All Rights Reserved. - +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + *

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()); + } }