Dead

Payout
100 DAI

$102.00

Remaining Balance
0 DAI

$0.00

Detect right-to-left text direction

Clojure

RTL

User Story

As a developer I want to know when text is going to be displayed right-to-left so that i could adjust views and styles to display that properly.

Description

For Arabic, Hebrew and other right-to-left languages React Native aligns text to the right. That is breaking layout for chat messages.

As a quickfix we're using regexp to detect most of right-to-left languages, but this method is error-prone and don't cover all the cases https://github.com/status-im/status-react/pull/5054

Solution

I haven't found the API for Text or View components to tell if text is going to be displayed and aligned as RTL text. Probably there is some API for this on native level (android/ios), needs to be researched further.

Submissions

0

Comments

0

  • There are 0 comments

    Submit a comment using the form above.