Skip to content

Convert ReactHorizontalScrollView to Kotlin#57045

Open
cortinico wants to merge 2 commits into
facebook:mainfrom
cortinico:export-D107236883
Open

Convert ReactHorizontalScrollView to Kotlin#57045
cortinico wants to merge 2 commits into
facebook:mainfrom
cortinico:export-D107236883

Conversation

@cortinico
Copy link
Copy Markdown
Contributor

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: D107236883

cortinico and others added 2 commits June 2, 2026 05:50
Summary:
Convert `ReactScrollView.java` to `ReactScrollView.kt` and update the `generate-nested-scroll-view.js` script to generate `ReactNestedScrollView.kt` from the Kotlin source.

Key changes:
- `ReactScrollView.java` replaced by idiomatic `ReactScrollView.kt`
- `ReactNestedScrollView.java` replaced by generated `ReactNestedScrollView.kt`
- Generation script updated for Kotlin source/output file paths and transformations
- BUCK file updated to reference `.kt` files in the verification genrule
- `ReactScrollViewManager.kt` updated to use Kotlin property access syntax for `scrollEnabled`, `stateWrapper`, and `fadingEdgeLengthStart/End`
- Public API surface preserved: only additive `synthetic` constructor from `JvmOverloads`

Changelog:
[Android][Changed] - Convert `ReactScrollView` and `ReactNestedScrollView` from Java to Kotlin

Differential Revision: D107236882
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: D107236883
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 2, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Jun 2, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Jun 2, 2026

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating Diff in D107236883.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant