import React from 'react'
import {
TouchableOpacity,
ScrollView,
} from 'react-native'
import styles from '../../styles/index'
import settingsLabels from '../../i18n/en/settings'
import AppText from '../app-text'
const labels = settingsLabels.menuTitles
const menu = [
{title: labels.reminders, component: 'Reminders'},
{title: labels.nfpSettings, component: 'NfpSettings'},
{title: labels.dataManagement, component: 'DataManagement'},
{title: labels.password, component: 'Password'},
{title: labels.about, component: 'About'},
{title: labels.license, component: 'License'}
]
export default function SettingsMenu(props) {
return (
{ menu.map(menuItem)}
)
function menuItem(item) {
return (
props.navigate(item.component)}
>
{item.title}
)
}
}