Commit d7ab07d
Convert
Summary:
Convert `ReactHorizontalScrollView.java` to `ReactHorizontalScrollView.kt` using idiomatic Kotlin while preserving the public API surface.
Key changes:
- `ReactHorizontalScrollView.java` replaced by `ReactHorizontalScrollView.kt`
- `ReactHorizontalScrollViewManager.kt` updated to use Kotlin property access syntax for `scrollEnabled`, `stateWrapper`, and `fadingEdgeLengthStart/End`
- Static helper methods (`findDeepestScrollViewForMotionEvent`) moved into the companion object
- Public API surface preserved: only additive `synthetic` constructor from `JvmOverloads`
Changelog:
[Android][Changed] - Convert `ReactHorizontalScrollView` from Java to Kotlin
Differential Revision: D107236883ReactHorizontalScrollView to Kotlin1 parent cbb11d0 commit d7ab07d
4 files changed
Lines changed: 1632 additions & 1853 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/views/scroll
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5451 | 5451 | | |
5452 | 5452 | | |
5453 | 5453 | | |
| 5454 | + | |
5454 | 5455 | | |
5455 | 5456 | | |
5456 | 5457 | | |
| |||
5515 | 5516 | | |
5516 | 5517 | | |
5517 | 5518 | | |
5518 | | - | |
5519 | 5519 | | |
5520 | 5520 | | |
5521 | 5521 | | |
| |||
0 commit comments