Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- componentDidMount() {
- this.setLocalConfigs();
- }
- async setLocalConfigs() {
- const response = await AsyncStorage.getItem('@LOGIN_OPTIONS');
- if (response) {
- const localConfigs = JSON.parse(response);
- this.setRememberUser(...localConfigs);
- }
- }
- setRememberUser(loginOpcaoLembrarUsuario, loginUsuario) {
- const { setFieldValue } = this.props;
- setFieldValue('opcaoLembrarUsuario', loginOpcaoLembrarUsuario);
- loginOpcaoLembrarUsuario && setFieldValue('usuario', loginUsuario);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement