Hello everyone,
I am working on a project using react-redux, thunk, and expo sdk. I am trying to detect device language to display content accordingly. while i managed to get the device language code from :
Expo.Expo.DangerZone.Localization.getCurrentDeviceCountryAsync().then(res => { Reactotron.log(res) })
But when logging this.props.lang after dispatching an action to set language i get en empty variable as initialized in the store.
here is the snack for the project:
I really need this feature so any help is very much appreciated
PS: ./app/screen/MainScreen.js is where the component is logged