Litho Props

Summary:
This diff adds support for layout and component props from Litho.

Notes:
- Each component could register a descriptor for itself.

Reviewed By: LukeDefeo

Differential Revision: D40680095

fbshipit-source-id: 57c78a199db58e05dd6dac4ed32ff6a869a73b0a
This commit is contained in:
Lorenzo Blasa
2022-11-11 04:49:02 -08:00
committed by Facebook GitHub Bot
parent 612bd69605
commit 7ae0eac13a
5 changed files with 361 additions and 2 deletions

View File

@@ -89,6 +89,10 @@ sealed class InspectableValue : Inspectable() {
val value: com.facebook.flipper.plugins.uidebugger.model.Enumeration,
) : InspectableValue()
@SerialName("unknown")
@kotlinx.serialization.Serializable
data class Unknown(val value: String?) : InspectableValue() {}
companion object {
/**
* Will attempt to convert Any ref to a suitable primitive inspectable value. Only use if you

View File

@@ -64,4 +64,4 @@ data class Size(
) {}
@kotlinx.serialization.Serializable
data class Enumeration(val values: Set<String>, val value: String)
data class Enumeration(val values: Set<String>, val value: String?)