Support for Text Alignment #365#478
Conversation
|
Hello @Wmg20, I wanted to let you know that we already have an iOS implementation of text alignment in #403, which is currently awaiting review. If it gets merged, we'd love to have the Android side implemented in a similar fashion so both platforms stay consistent.
It would be great if you could take a look at #403 and adapt the Android implementation to follow the same conventions. That way we keep the behavior consistent across platforms. Thanks again for your effort and feel free to reach out if you have any questions! |
|
Hi @kacperzolkiewski , Thanks for the clarification and the detailed context. I’ll take a look at #403 and align the Android implementation with the iOS approach so the behavior stays consistent across platforms. In particular, I’ll make sure that: List alignment is applied to the entire contiguous list, not just the current paragraph when the cursor is inside a list. List markers remain left-aligned, regardless of the selected text alignment (center, right, etc.). I’ll update the Android implementation accordingly and push the changes. |
Summary
Support for feature request: #365
This PR introduces text alignment support (
left,center,right) toEnrichedTextInput.Features & Implementation:
setParagraphAlignment(alignment)to the JS Ref and included alignment structures in the text change events.Layout.Alignmentspans (ALIGN_NORMAL,ALIGN_CENTER,ALIGN_OPPOSITE). Emits active alignment state back to the JS context.NSTextAlignmentviaNSMutableParagraphStyleand updated the active alignment state when cursor location changes.API_REFERENCE.mdto document the new functionality.Test Plan
exampleapplication.Screenshots / Videos
Compatibility