tooot/src/screens/Tabs/Shared/Account/Information/Switch.tsx

20 lines
485 B
TypeScript
Raw Normal View History

2021-01-07 19:13:09 +01:00
import Button from '@components/Button'
import { useNavigation } from '@react-navigation/native'
import React from 'react'
2021-01-19 01:13:45 +01:00
import { useTranslation } from 'react-i18next'
2021-01-07 19:13:09 +01:00
const AccountInformationSwitch: React.FC = () => {
const navigation = useNavigation()
2021-01-19 01:13:45 +01:00
const { t } = useTranslation()
2021-01-07 19:13:09 +01:00
return (
<Button
type='text'
2021-01-19 01:13:45 +01:00
content={t('meSwitch:heading')}
2021-01-30 01:29:15 +01:00
onPress={() => navigation.navigate('Tab-Me-Switch')}
2021-01-07 19:13:09 +01:00
/>
)
}
export default AccountInformationSwitch