diff --git a/ComApp/src/App/Views/LoginScreen.js b/ComApp/src/App/Views/LoginScreen.js index f44d302..eb0d15b 100644 --- a/ComApp/src/App/Views/LoginScreen.js +++ b/ComApp/src/App/Views/LoginScreen.js @@ -22,7 +22,8 @@ import * as FileSystem from 'expo-file-system'; // Controller import LoginController from '../Controllers/LoginController'; // Database -import { Setting } from '../../Database'; +import { Setting, User } from '../../Database'; +import InstallController from '../Controllers/InstallController'; import SyncController from '../Controllers/SyncController'; function mapStateToProps(state) { @@ -42,6 +43,7 @@ const mapDispatchToProps = dispatch => { class LoginScreen extends React.Component { state = { + syncWorking: false, login: '', password: '', }; @@ -51,6 +53,7 @@ class LoginScreen extends React.Component { this.props.setCurrentUser(false); } SplashScreen.hideAsync(); + this.syncUsersIfPossibleAsync(); } render() { @@ -83,11 +86,12 @@ class LoginScreen extends React.Component { autoCorrect={false} />