Skip to content

[Feature request] Support for Text Alignment #365

@Rubiojen

Description

@Rubiojen

Is your feature request related to a problem? Please describe.
Yes. The EnrichedTextInput component forces all text to be left-aligned. It ignores standard textAlign: 'center' style properties and lacks methods to adjust paragraph alignment. This makes it impossible to implement centered layouts (e.g., titles, poetry, or social media captions).

Describe the solution you'd like
I would like EnrichedTextInput to support the standard textAlign style prop (mapping to Gravity.CENTER on Android and textAlignment = .center on iOS). Alternatively, expose a toggleAlign('center' | 'right' | 'left') method on the ref.

Describe alternatives you've considered
I attempted to use setNativeProps to force alignment, but it is ignored. I also tried a "Ghost Text" wrapper to calculate width, but the internal text inside the editor remains left-aligned on multiline inputs.

Additional context
This is critical for apps requiring "Instagram-style" text overlays where content must be centered on the screen regardless of line length.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions