mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
Migrate ReactCompoundView to kotlin (#47748)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47748 Migrate ReactCompoundView to kotlin changelog: [internal] internal Reviewed By: javache Differential Revision: D66217094 fbshipit-source-id: 238c20c907880f4251c9b5926ad486cfff55a3b0
This commit is contained in:
parent
aa53bde21b
commit
a2523a24c7
@ -5,13 +5,11 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import android.view.View;
|
||||
package com.facebook.react.uimanager
|
||||
|
||||
/**
|
||||
* This interface should be implemented be native {@link View} subclasses that can represent more
|
||||
* than a single react node (e.g. TextView). It is use by touch event emitter for determining the
|
||||
* than a single react node (e.g. [TextView]). It is use by touch event emitter for determining the
|
||||
* react tag of the inner-view element that was touched.
|
||||
*/
|
||||
public interface ReactCompoundView {
|
||||
@ -22,5 +20,5 @@ public interface ReactCompoundView {
|
||||
* @param touchX the X touch coordinate relative to the view
|
||||
* @param touchY the Y touch coordinate relative to the view
|
||||
*/
|
||||
int reactTagForTouch(float touchX, float touchY);
|
||||
public fun reactTagForTouch(touchX: Float, touchY: Float): Int
|
||||
}
|
Loading…
Reference in New Issue
Block a user