add version number to about setion

This commit is contained in:
austinried
2021-08-27 09:58:49 +09:00
parent 36e97cb621
commit 77e89fc9e2
2 changed files with 14 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ import React, { useCallback, useState } from 'react'
import { KeyboardTypeOptions, Linking, Modal, Pressable, StatusBar, StyleSheet, Text, View } from 'react-native'
import { ScrollView } from 'react-native-gesture-handler'
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
import { version } from '../../package.json'
const ServerItem = React.memo<{
server: Server
@@ -286,6 +287,9 @@ const SettingsContent = React.memo(() => {
buttonStyle="hollow"
/>
<Header style={styles.header}>About</Header>
<Text style={styles.text}>
<Text style={styles.bold}>Subtracks</Text> version {version}
</Text>
<Button
disabled={clearing}
style={styles.button}
@@ -396,6 +400,14 @@ const styles = StyleSheet.create({
modalTextSubmit: {
marginLeft: 15,
},
text: {
color: 'white',
fontFamily: font.regular,
fontSize: 16,
},
bold: {
fontFamily: font.bold,
},
})
export default Settings