Skip to content

Make TextInput descriptors and prop conversion helpers private - #58919

Open
coado wants to merge 1 commit into
react:mainfrom
coado:export-D123643375
Open

coado wants to merge 1 commit into
react:mainfrom
coado:export-D123643375

Conversation

@coado

@coado coado commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary:
Lower the following react/renderer/components/textinput headers from "for frameworks" to private:

Platform component descriptors:

  • Android androidtextinput/AndroidTextInputComponentDescriptor.h
  • iOS and macOS iostextinput/TextInputComponentDescriptor.h

All three classes are final, so they cannot be extended, and they are registered only by React Native's own platform glue (the Android core components registry and the iOS TextInput component view). The Android descriptor is additionally coupled to React Native's Java FabricUIManager (it reads theme padding over JNI in getInitialState).

Prop conversion helpers:

  • baseConversions.h (conversions for the shared text input enums)
  • iOS and macOS iostextinput/propsConversions.h (iOS/macOS text input trait parsers)

These are only included by the module's own props sources (BaseTextInputProps.cpp and the platform TextInputProps.cpp / AndroidTextInputProps.cpp).

Changelog: [Internal]

Differential Revision: D123643375

@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 Oct 7, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Oct 7, 2026
@meta-codesync

meta-codesync Bot commented Oct 7, 2026

Copy link
Copy Markdown

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

Summary:
Lower the following `react/renderer/components/textinput` headers from "for frameworks" to private:

Platform component descriptors:
- Android `androidtextinput/AndroidTextInputComponentDescriptor.h`
- iOS and macOS `iostextinput/TextInputComponentDescriptor.h`

All three classes are `final`, so they cannot be extended, and they are registered only by React Native's own platform glue (the Android core components registry and the iOS TextInput component view). The Android descriptor is additionally coupled to React Native's Java `FabricUIManager` (it reads theme padding over JNI in `getInitialState`).

Prop conversion helpers:
- `baseConversions.h` (conversions for the shared text input enums)
- iOS and macOS `iostextinput/propsConversions.h` (iOS/macOS text input trait parsers)

These are only included by the module's own props sources (`BaseTextInputProps.cpp` and the platform `TextInputProps.cpp` / `AndroidTextInputProps.cpp`).


Changelog: [Internal]

Differential Revision: D123643375
@coado
coado force-pushed the export-D123643375 branch from d0c0b2e to 59a6907 Compare October 8, 2026 09:49

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant