We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What I tried as below
class App_ extends Component { render() { return ( <Router store={store}> <Scene key="root"> ... </Scene> </Router> ) } } @inject( 'store' ) @observer class ForIntlProvider extends Component { render() { return ( <IntlProvider locale={store.locale} messages={all[store.locale]}> <App_/> </IntlProvider> ) } } export default class App extends Component { render() { return ( <Provider store={store}> <ForIntlProvider/> </Provider> ) } }
But it was not successful. In order to use react-intl, App_ should be wrapped by IntlProvider which needs mobx store as well.
react-intl
App_
IntlProvider
store
Now react-native-mobx just uses store props in Router component.
react-native-mobx
Router
What shall I do?
The text was updated successfully, but these errors were encountered:
I created a small library that might help you https://github.com/Sqooba/mobx-react-intl/blob/master/README.md . The goal is to integrate mobx-react with react-intl. I didn't test it on react-native yet though.
Sorry, something went wrong.
No branches or pull requests
What I tried as below
But it was not successful. In order to use
react-intl
,App_
should be wrapped byIntlProvider
which needs mobxstore
as well.Now
react-native-mobx
just usesstore
props inRouter
component.What shall I do?
The text was updated successfully, but these errors were encountered: