Migrate ReactCompoundViewGroup to kotlin (#47751)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47751

Migrate ReactCompoundViewGroup to kotlin

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D66217251

fbshipit-source-id: b24b4ed984670e18256dda758bfa1d783badd536
This commit is contained in:
David Vacca 2024-11-20 18:51:34 -08:00 committed by Facebook GitHub Bot
parent 221d1eceda
commit 17502dd743

View File

@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
package com.facebook.react.uimanager; package com.facebook.react.uimanager
/** /**
* This interface should be implemented by native ViewGroup subclasses that can represent more than * This interface should be implemented by native ViewGroup subclasses that can represent more than
@ -13,10 +13,10 @@ package com.facebook.react.uimanager;
* overlap, and TouchTargetHelper may incorrectly dispatch touch event to a wrong element because it * overlap, and TouchTargetHelper may incorrectly dispatch touch event to a wrong element because it
* prioritizes children over parents. * prioritizes children over parents.
*/ */
public interface ReactCompoundViewGroup extends ReactCompoundView { public interface ReactCompoundViewGroup : ReactCompoundView {
/** /**
* Returns true if react node responsible for the touch event is flattened into this ViewGroup. * Returns true if react node responsible for the touch event is flattened into this ViewGroup.
* Use reactTagForTouch() to get its tag. * Use reactTagForTouch() to get its tag.
*/ */
boolean interceptsTouchEvent(float touchX, float touchY); public fun interceptsTouchEvent(touchX: Float, touchY: Float): Boolean
} }