Skip to content

Commit

Permalink
Migrate ReactOverflowView to kotlin (facebook#47750)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#47750

Migrate ReactOverflowView to kotlin

changelog: [internal] internal

Reviewed By: NickGerleman

Differential Revision: D66217252
  • Loading branch information
mdvacca committed Dec 16, 2024
1 parent d31ac83 commit 8a91c7f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) Meta Platforms, Inc. and 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.react.uimanager

/**
* Interface that should be implemented by [View] subclasses that support [overflow] style. This
* allows the overflow information to be used by [TouchTargetHelper] to determine if a View is
* touchable.
*/
public interface ReactOverflowView {
/**
* Gets the overflow state of a view. If set, this should be one of [ViewProps#HIDDEN],
* [ViewProps#VISIBLE] or [ViewProps#SCROLL].
*/
public fun getOverflow(): String?
}
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()

@ReactProp(name = ViewProps.OVERFLOW)
public open fun setOverflow(view: ReactViewGroup, overflow: String?) {
view.overflow = overflow
view.setOverflow(overflow)
}

@ReactProp(name = "backfaceVisibility")
Expand Down

0 comments on commit 8a91c7f

Please sign in to comment.