Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

react-native - 本机反应-使特定组件不是RTL设备中的RTL(react native - make specific component not RTL in RTL device)

I'm using https://github.com/ptomasroos/react-native-multi-slider , to create a range slider.

(我正在使用https://github.com/ptomasroos/react-native-multi-slider来创建范围滑块。)

every thing work great, when I'm in LTR, but when i switch to RTL the maximum and minimum position flip over, when I need them to stay the same.

(当我处于LTR时,一切工作都很好,但是当我切换到RTL时,最大和最小位置都需要翻转,当我需要它们保持不变时。)

because numbers in Hebrew are still LTR and not RTL.

(因为希伯来语中的数字仍然是LTR,而不是RTL。)

Anybody here knows how to make one component to ignore RTL?

(这里有人知道如何使一个组件忽略RTL吗?)

  ask by Eldar translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I think your this plugin does not support the RTL version, I changed some code in the same plugin, for example, I changed right to left.

(我认为您的此插件不支持RTL版本,我在同一插件中更改了一些代码,例如,我从右到左更改。)

you can change some code in this plugin.

(您可以在此插件中更改一些代码。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...