import React from 'react'; import { View, Button, Alert, Text } from 'react-native'; // Redux import { connect } from 'react-redux'; // Style import styles from '../../Resources/Styles/SyncStyle'; // Translations import i18n from "../../I18n"; // Controller import SyncController from '../Controllers/SyncController'; // Progress import * as Progress from 'react-native-progress'; function mapStateToProps(state) { return { documents: state.documents, syncVersion: state.syncVersion, currentUser: state.currentUser, }; } class SyncScreen extends React.Component { state = { progress: 0, txtStep: '', downloadProgress: 0, downloadingFile: false, processing: false, newApp: false }; render() { const fileProgress = this.fileProgress(); return (