import React from 'react' import { Modal, StyleSheet, TouchableOpacity, View } from 'react-native' import PropTypes from 'prop-types' import AppIcon from '../common/app-icon' import MenuItem from './menu-item' import { Colors, Sizes } from '../../styles/redesign' import settingsLabels from '../../i18n/en/settings' const { menuItems } = settingsLabels const settingsMenuItems = [ { name: menuItems.settings, component: 'SettingsMenu' }, { name: menuItems.about, component: 'About' }, { name: menuItems.license, component: 'License' }, ] const SideMenu = ({ shouldShowMenu, toggleMenu }) => { return( {!shouldShowMenu && } {shouldShowMenu && {settingsMenuItems.map(item => )} } ) } SideMenu.propTypes = { shouldShowMenu: PropTypes.bool.isRequired, toggleMenu: PropTypes.func } const styles = StyleSheet.create({ blackBackground: { backgroundColor: 'black', flex: 1, opacity: 0.65, }, iconContainer: { alignSelf: 'flex-end', marginBottom: Sizes.base }, menu: { alignSelf: 'flex-end', backgroundColor: 'white', height: '100%', padding: Sizes.base, position: 'absolute', width: '60%' } }) export default SideMenu