Skip to content

Commit

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

Migrate ReactOverflowView to kotlin

changelog: [internal] internal

Reviewed By: NickGerleman

Differential Revision: D66217252

fbshipit-source-id: 8cd642dee2077006eab10d718a1887a77fd029a7
  • Loading branch information
mdvacca authored and facebook-github-bot committed Dec 17, 2024
1 parent 03a1246 commit 25ee3e8
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 25ee3e8

Please sign in to comment.