show package.json version on web (#717)
parent
a9a661ab58
commit
037713321d
|
@ -1,4 +1,2 @@
|
||||||
import VersionNumber from 'react-native-version-number'
|
import VersionNumber from 'react-native-version-number'
|
||||||
|
export const appVersion = `${VersionNumber.appVersion} (${VersionNumber.buildVersion})`
|
||||||
export const appVersion = VersionNumber.appVersion
|
|
||||||
export const buildVersion = VersionNumber.buildVersion
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
// TODO
|
import {version} from '../../package.json'
|
||||||
export const appVersion = 'TODO'
|
export const appVersion = version
|
||||||
export const buildVersion = 'TODO'
|
|
||||||
|
|
|
@ -409,7 +409,7 @@ export const SettingsScreen = withAuthRequired(
|
||||||
</Link>
|
</Link>
|
||||||
) : null}
|
) : null}
|
||||||
<Text type="sm" style={[styles.buildInfo, pal.textLight]}>
|
<Text type="sm" style={[styles.buildInfo, pal.textLight]}>
|
||||||
Build version {AppInfo.appVersion} ({AppInfo.buildVersion})
|
Build version {AppInfo.appVersion}
|
||||||
</Text>
|
</Text>
|
||||||
<View style={s.footerSpacer} />
|
<View style={s.footerSpacer} />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
Loading…
Reference in New Issue