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

@cortinico cortinico commented Jun 2, 2026

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.

@cortinico cortinico force-pushed the export-D107236883 branch 4 times, most recently from d7ab07d to b8c9eee Compare June 3, 2026 09:57
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
@cortinico cortinico force-pushed the export-D107236883 branch from b8c9eee to bbbc85d Compare June 3, 2026 13:29
@meta-codesync meta-codesync Bot changed the title Convert ReactHorizontalScrollView to Kotlin Convert ReactHorizontalScrollView to Kotlin (#57045) Jun 3, 2026
cortinico added a commit to cortinico/react-native that referenced this pull request Jun 3, 2026
Summary:
Pull Request resolved: facebook#57045

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 cortinico force-pushed the export-D107236883 branch from bbbc85d to 55a7ec7 Compare June 3, 2026 13:38
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-codesync meta-codesync Bot changed the title Convert ReactHorizontalScrollView to Kotlin (#57045) Convert ReactHorizontalScrollView to Kotlin Jun 3, 2026
@cortinico cortinico force-pushed the export-D107236883 branch from 55a7ec7 to f2b39b2 Compare June 3, 2026 15:52
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