-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Migrate ReactHitSlopView to kotlin bypass-github-export-checks changelog: [internal] internal Reviewed By: rshest Differential Revision: D51262574 fbshipit-source-id: 7ad625bcdff1525299a0a9c9cf3409d081231b3c
- Loading branch information
1 parent
7f52791
commit 803c5bb
Showing
3 changed files
with
19 additions
and
27 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
...es/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...ages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* 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.touch | ||
|
||
import android.graphics.Rect | ||
|
||
/** | ||
* This interface should be implemented by all [View] subclasses that want to use the hitSlop prop | ||
* to extend their touch areas. | ||
*/ | ||
interface ReactHitSlopView { | ||
val hitSlopRect: Rect? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters