Right to left for specific text in RTL

I am developing an application in Arabic, in responsive native, I used tabs and menus from my own base. I am aligned correctly because there is only one word. but now I need to write a sentence that is right to left aligned. Is there a way to set the RTL format for a specific text because when I installed I18nManager.forceRTL(true);

it changed it for the whole application and my previous work is completely ruined and the tabs don't work correctly. please help.

+3


source to share


1 answer


I used a property textAlign:'right'

for this and it works for me



  <View style={{flex:1,marginRight:10}}>
                <Text  style={{textAlign:'right'}}>ین الاقوامی خبریں ین الاقوامی خبریں ں ین الاقوامی خبریں ں ین الاقوامی خبریں </Text>
            </View> 

      

0


source







All Articles