유희정

setting tab id 수정

import React, { Component } from 'react';
import { View, Text, StyleSheet, TextInput, TouchableOpacity, Image } from 'react-native';
import AddButton from '../component/AddButton'
import {delete_all_data, deleteId} from '../component/DBhelper'
import {delete_all_data, deleteId, get_id} from '../component/DBhelper'
var date = new Date();
date.setHours(date.getHours()+9);
......@@ -11,7 +11,7 @@ export default class SettingTab extends Component {
constructor(props){
super(props);
this.state = {
ID : 'pi1',
ID : get_id(),
user : 'user1'
}
}
......@@ -41,7 +41,7 @@ export default class SettingTab extends Component {
this.setState({ID: ''})
//save_app_data()
delete_all_data()
//deleteId()
deleteId()
this.props.navigation.navigate('Login');
}
render() {
......