/** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { useNavigation } from '@react-navigation/native'; import Constants from 'expo-constants'; import React, { useContext } from 'react'; import { StyleSheet, View } from 'react-native'; import { Text, ThemeContext } from 'react-native-elements'; import Screens from '../constants/Screens'; import { getAppName } from '../utils/Device'; const AppInfoFooter = () => { const navigation = useNavigation(); const { theme } = useContext(ThemeContext); const textStyle = { ...styles.text, color: theme.colors.grey1 }; return ( { navigation.navigate(Screens.DevSettingsScreen); }} > {getAppName()} {`${Constants.nativeAppVersion} (${Constants.nativeBuildVersion})`} ); }; const styles = StyleSheet.create({ container: { margin: 15 }, text: { fontSize: 15 } }); export default AppInfoFooter;