question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RTL bug with Text component

See original GitHub issue

Description

When I18nManager.forceRTL(true) to test my RTL app, I came across a bug with the <Text> component.

When the app is LTR, multiline text in Arabic renders from right to left, with the subsequent lines starting from right as well.

ltr-arabic

However, if the app is RTL, this happens.

rtl-arabic

I used flexDirection: 'flex-start' on the <Text> to make it start from the correct side. I tried using textAlign: 'right', but had no luck.

Reproduction

https://rnplay.org/apps/GfNikw

Additional Information

  • React Native version: 0.36.1
  • Platform: iOS
  • Operating System: MacOS

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:51 (7 by maintainers)

github_iconTop GitHub Comments

25reactions
grmmphcommented, Mar 7, 2017

This issue makes me glad we Jews an Arabs finally found a common enemy!

10reactions
alizahidcommented, Aug 6, 2017

@ali-sao You need to import RCTI18nUtil first at the top

#import <React/RCTI18nUtil.h>
Read more comments on GitHub >

github_iconTop Results From Across the Web

RTL Bugs - The Document Foundation Wiki
RTL language independent bugs. Such bugs should all be filed on The Document Foundation's bugzilla instance. There is a RTL-CTL Meta Bug ......
Read more >
Bug in Flutter, while editing text in RTL languages
I solve this bug .. in your TextField you should use controller and onTab function write if (textController.selection == TextSelection.
Read more >
Can't select RTL text from Chrome UI boxes - Monorail
Issue 8686 : RTL: Can't select RTL text from Chrome UI boxes · 1. Run Hebrew Chrome · 2. Hit Ctrl + F...
Read more >
RTL Bugs in Rich Text / WYSIWYG editor - Prismic People
1) Rich Text field. If you toggle RTL button in the Rich Text Configuration after the custom type has already been created /...
Read more >
Topic: Possible bug in text rtl layout / sciter
Possible bug in text rtl layout ... This topic has 4 replies, 2 voices, and was last updated 1 year, 6 months ago...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found