ReactNativeLocalization
ReactNativeLocalization copied to clipboard
How to use this package along with Redux and Mobx ?
Doc or Example needed.
Hi, unfortunately I don't use them, but maybe someone else can help you...
@BhavanPatel - what is it you are trying to achieve?
@stuartaylward I am trying to achieve like , On change of language I do not want to restart the whole application but I just want to do normal language switcher... but I am not able to achieve that by changing the language it wont change strings of screens that are already mounted. So I was thinking to do using redux/mobx but I am missing that doc or example. Help me if you can? Thanks
@BhavanPatel @bhavantrt You'll need to have your Component re-render whenever the language changes. For Redux, you'll probably want to store the selected language in your state store. Assuming you're using react-redux
you'll then modify the mapStateToProps
function for any Component that needs to re-render when the language changes. See react-redux documentation on mapStateToProps affecting Component re-renders