Skip to content

Commit

Permalink
로그인 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
onting committed Aug 4, 2020
1 parent 9d8a3da commit 39c83f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compo/loginview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import AsyncStorage from '@react-native-community/async-storage';
import React from 'react';
import { StyleSheet, Text, View, TextInput, Button, TouchableHighlight, Alert } from 'react-native';
import hostaddr from '../config'
Expand Down Expand Up @@ -29,6 +30,9 @@ export default function LoginView(props) {
{cancelable: false},
);
}
else{
AsyncStorage.setItem('username', username);
}
return res.text();
}).then(text => console.log(text))
.catch((err) => {
Expand Down

0 comments on commit 39c83f0

Please sign in to comment.