Skip to content

Commit 66c5b55

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Add KDoc documentation to OutlineStyle.kt
Summary: Added KDoc documentation to OutlineStyle.kt: - Enum documentation explaining CSS outline-style correspondence - Explained that outlines are drawn outside border edge - Documented each value: SOLID, DASHED, DOTTED - Added fromString() method documentation - Added see reference to BorderStyle changelog: [internal] internal bypass-github-export-checks Documentation only Reviewed By: javache Differential Revision: D91555118 fbshipit-source-id: d80a7d17b15fc8b5d38b1265accdb4548d5c563f
1 parent 86c45fe commit 66c5b55

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/OutlineStyle.kt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,29 @@
77

88
package com.facebook.react.uimanager.style
99

10+
/**
11+
* Enum representing the possible outline rendering styles.
12+
*
13+
* These values correspond to CSS outline-style property values supported by React Native. Outlines
14+
* are drawn outside the border edge and do not affect layout.
15+
*
16+
* @see BorderStyle
17+
*/
1018
public enum class OutlineStyle {
19+
/** A solid continuous line. */
1120
SOLID,
21+
/** A series of dashes. */
1222
DASHED,
23+
/** A series of dots. */
1324
DOTTED;
1425

1526
public companion object {
27+
/**
28+
* Parses a string into an OutlineStyle.
29+
*
30+
* @param outlineStyle The string value (case-insensitive)
31+
* @return The corresponding OutlineStyle, or null if not recognized
32+
*/
1633
@JvmStatic
1734
public fun fromString(outlineStyle: String): OutlineStyle? {
1835
return when (outlineStyle.lowercase()) {

0 commit comments

Comments
 (0)