Skip to content

Commit 7fc44aa

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Add KDoc documentation to Overflow.kt
Summary: Added KDoc documentation to Overflow.kt: - Enum documentation explaining CSS overflow correspondence - Documented each value: VISIBLE, HIDDEN, SCROLL - Added fromString() method documentation changelog: [internal] internal Reviewed By: javache Differential Revision: D91555087
1 parent e5d0d3c commit 7fc44aa

File tree

1 file changed

+15
-0
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style

1 file changed

+15
-0
lines changed

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

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

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

10+
/**
11+
* Enum representing the overflow behavior of a view's content.
12+
*
13+
* These values correspond to CSS overflow property values, controlling how content that exceeds the
14+
* view's bounds is handled.
15+
*/
1016
internal enum class Overflow {
17+
/** Content is not clipped and may be visible outside the view's bounds. */
1118
VISIBLE,
19+
/** Content is clipped to the view's bounds without scrolling. */
1220
HIDDEN,
21+
/** Content is clipped to the view's bounds but can be scrolled to reveal hidden content. */
1322
SCROLL;
1423

1524
companion object {
25+
/**
26+
* Parses a string into an Overflow value.
27+
*
28+
* @param overflow The string value (case-insensitive)
29+
* @return The corresponding Overflow, or null if not recognized
30+
*/
1631
@JvmStatic
1732
fun fromString(overflow: String): Overflow? {
1833
return when (overflow.lowercase()) {

0 commit comments

Comments
 (0)