import React from 'react'; import { View, ImageBackground, TouchableOpacity, Text, Image } from 'react-native'; // Common Styles import commonStyles from '../../Resources/CommonStyles'; // Style import styles from '../../Resources/Styles/HomeStyle'; // Translations import i18n from "../../I18n"; // FileSytem import * as FileSystem from 'expo-file-system'; // Database import { Setting } from "../../Database"; import _ from 'lodash'; class HomeScreen extends React.Component { render() { let buttons = Setting.get("HomeFolders"); buttons = JSON.parse(buttons.value); //console.log(typeof Object.values(buttons)) const arr = [1, 2, 3] return ( {/* {this.getHomeButton()} */} { }} style={styles.button}> {i18n.t('global.videos')} { }} style={styles.button}> {i18n.t('global.contacts')} ); } getHomeButtons() { let buttons = Setting.get("HomeFolders"); if (buttons) { buttons = JSON.parse(buttons.value); _.forEach(buttons, function (value, key) { console.log(JSON.parse(value.name).fr) }); } } openFolder(id) { console.log(id) } } export default HomeScreen;