Appcelerator Titanium RTL/RTL application
1 - Use this module to force language change, it’ll load correct strings link
2 - Add android:supportsRtl="true"
to
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:supportsRtl="true" ></application>
</manifest>
</android>
3 - Use if in .tss file to switch RTL & LTR
// alloy.js
Alloy.Globals.isRTL = Ti.Locale.currentLanguage === 'ar';
'#exampleLabel' : {
color: ‘red'
}
'#exampleLabel[if=Alloy.Globals.isRTL]' : {
right: 5
}
'#exampleLabel[if=!Alloy.Globals.isRTL]' : {
left: 5
}
4 - Set iOS 9+ is minimum in tiapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<ios>
<min-ios-ver>9.0</min-ios-ver>
</ios>
</ti:app>
5 - Set Android 4.2 as minimum
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:versionCode="17">
<uses-sdk android:minSdkVersion="17"></uses-sdk>
</manifest>
</android>
</ti:app>