Skip to content

[Text, IOS]String with newline breaks the alignment #2457

Closed
@mk0116

Description

@mk0116

Description

[Text]String with newline breaks the alignment.

When I add new line character('\n') in the text and nest a Text, it breaks the alignment.
The first line should be aligned center but left.
This only happens on iOS.
It works fine on Android.

Related to

  • [v] Components
  • Demo
  • Docs
  • Typings

Code snippet

<Text
    textColor
    center>
    <Text bold>test</Text>
    {'\nrest string'}
</Text>

Screenshots/Video

스크린샷 2023-02-10 오전 9 58 44

Environment

  • React Native version: 0.70.3
  • React Native UI Lib version: 6.29.0

Affected platforms

  • Android
  • [v] iOS
  • Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions