Add build version to menu

This commit is contained in:
Paul Frazee 2022-12-06 12:40:40 -06:00
parent 246b0e19e1
commit 588aface7c
6 changed files with 27 additions and 3 deletions

View file

@ -7,7 +7,8 @@ import {
View,
ViewStyle,
} from 'react-native'
import {colors} from '../lib/styles'
import VersionNumber from 'react-native-version-number'
import {s, colors} from '../lib/styles'
import {ScreenParams} from '../routes'
import {useStores} from '../../state'
import {
@ -171,6 +172,12 @@ export const Menu = ({navIdx, visible}: ScreenParams) => {
))
: undefined}
</View>
<View style={styles.footer}>
<Text style={s.gray4}>
Build version {VersionNumber.appVersion} ({VersionNumber.buildVersion}
)
</Text>
</View>
</View>
)
}
@ -243,4 +250,9 @@ const styles = StyleSheet.create({
fontWeight: 'bold',
color: colors.white,
},
footer: {
paddingHorizontal: 14,
paddingVertical: 18,
},
})