mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate ReactOverflowView to kotlin (#47750)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47750 Migrate ReactOverflowView to kotlin changelog: [internal] internal Reviewed By: NickGerleman Differential Revision: D66217252 fbshipit-source-id: 8cd642dee2077006eab10d718a1887a77fd029a7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
03a1246c35
commit
25ee3e805d
-25
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
* 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;
|
||||
|
||||
import android.view.View;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Interface that should be implemented by {@link View} subclasses that support {@code overflow}
|
||||
* style. This allows the overflow information to be used by {@link 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 {@link ViewProps#HIDDEN},
|
||||
* {@link ViewProps#VISIBLE} or {@link ViewProps#SCROLL}.
|
||||
*/
|
||||
@Nullable
|
||||
String getOverflow();
|
||||
}
|
||||
+21
@@ -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?
|
||||
}
|
||||
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user