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
RNLocalize.addEventListener("change", () => { // do localization related stuff… });
the above method is calling even on network switching from one to another. can anyone help me out how to fix this issue
The text was updated successfully, but these errors were encountered:
@PitlaSpandana Please respect the issue template. On which platforms? Which version?
Sorry, something went wrong.
I was testing in Android tablet OS version 8.0.0(samsung galaxy tab s3). and using react-native-localize: "^1.1.2". below is my index.android.js file
import React, { Component } from 'react'; import { StyleSheet, } from 'react-native'; import * as RNLocalize from "react-native-localize"; export default class Test extends Component { constructor(props) { super(props); } componentDidMount() { RNLocalize.addEventListener('change', this.handleLocaleChange); } handleLocaleChange = () => { console.log('***************', RNLocalize.getLocales()); } componentWillUnmount() { RNLocalize.removeEventListener('change', this.handleLocaleChange); } render() { return ( <AppContainer> </AppContainer> ); } }
170e213
No branches or pull requests
RNLocalize.addEventListener("change", () => {
// do localization related stuff…
});
the above method is calling even on network switching from one to another. can anyone help me out how to fix this issue
The text was updated successfully, but these errors were encountered: