show package.json version on web (#717)

zio/stable
Ben Harris 2023-05-30 20:53:23 -04:00 committed by GitHub
parent a9a661ab58
commit 037713321d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1,2 @@
import VersionNumber from 'react-native-version-number'
export const appVersion = VersionNumber.appVersion
export const buildVersion = VersionNumber.buildVersion
export const appVersion = `${VersionNumber.appVersion} (${VersionNumber.buildVersion})`

View File

@ -1,3 +1,2 @@
// TODO
export const appVersion = 'TODO'
export const buildVersion = 'TODO'
import {version} from '../../package.json'
export const appVersion = version

View File

@ -409,7 +409,7 @@ export const SettingsScreen = withAuthRequired(
</Link>
) : null}
<Text type="sm" style={[styles.buildInfo, pal.textLight]}>
Build version {AppInfo.appVersion} ({AppInfo.buildVersion})
Build version {AppInfo.appVersion}
</Text>
<View style={s.footerSpacer} />
</ScrollView>