My problem is when I create a multi-language app in react native, for example, an app that can be in Arabic and English. when I want to style a component to change the direction when language is switched I always use this type of styling
i18n.language == 'ar' ? 'row-reverse' : 'row',
I tried to use global styling to avoid repeating it in all Views but I can't call i18n outside a component. any solution to global the style for the languages?
I tried to use global styles but it did not work