Hi all, i find that this is an awesome community where people find time proactively to help others, unlike RNav’s github’s page where they tell you to switch to stackoverflow, which is actually right too, i mean the question has been probably asked too many times ( i did go through a few and couldn’t really find what’s wrong besides sending props this or that way), and they are being bombarded about zillions of questions, so anyone would do that. Okay well, let me get down to the question.
I’m setting locale in componentWillMount(), its doing it alright. I can get the right context of locale correctly and display the switched languages correctly as well within the component. Now, in the nav options when i pass title: I18n.t(‘greeting’), it would only load the EN version, not the locale that i’ve set?
now my conclusion is its doing that prior to component mounting, i mean the navigation is probably happening in some other context?
the primary question is if i can set locale prior to navigation mount? or rerender it somehow? i have a language toggle button, so i’d like to toggle languages and then rerender, the component works fine, the nav bar would only load ‘en’ version, so how do i go on about that.
here’s the code.