Skip to content

Commit 48176e3

Browse files
committed
change where version comes from
1 parent 9ad3c01 commit 48176e3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

source/views/settings/sections/odds-and-ends.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// @flow
22
import React from 'react'
33
import {View} from 'react-native'
4-
import {getVersion} from 'react-native-device-info'
54
import {Cell, Section} from 'react-native-tableview-simple'
6-
import {allaboutolaf} from '../../../../package.json'
5+
import {version, allaboutolaf} from '../../../../package.json'
76
import type {TopLevelViewPropsType} from '../../types'
87
import {setFeedbackStatus} from '../../../flux/parts/settings'
98
import {connect} from 'react-redux'
@@ -41,8 +40,6 @@ class OddsAndEndsSection extends React.Component {
4140
? '[dev] '
4241
: allaboutolaf.source ? `[${allaboutolaf.source}] ` : ''
4342

44-
const versionString = getVersion()
45-
4643
return (
4744
<View>
4845
<Section header="MISCELLANY">
@@ -59,7 +56,7 @@ class OddsAndEndsSection extends React.Component {
5956
<Cell
6057
cellStyle="RightDetail"
6158
title="Version"
62-
detail={`${versionMoniker}${versionString}`}
59+
detail={`${versionMoniker}${version}`}
6360
/>
6461

6562
<CellToggle

source/views/settings/sections/support.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {Section} from 'react-native-tableview-simple'
55
import type {TopLevelViewPropsType} from '../../types'
66
import Communications from 'react-native-communications'
77
import DeviceInfo from 'react-native-device-info'
8+
import {version} from '../../../../package.json'
89
import {PushButtonCell} from '../components/push-button'
910
import {refreshApp} from '../../../lib/refresh'
1011

@@ -24,7 +25,7 @@ export default class SupportSection extends React.Component {
2425
----- Please do not edit below here -----
2526
${DeviceInfo.getBrand()} ${DeviceInfo.getModel()}
2627
${DeviceInfo.getDeviceId()}
27-
${DeviceInfo.getSystemName()} ${DeviceInfo.getSystemVersion()}
28+
${DeviceInfo.getSystemName()} ${version}
2829
${DeviceInfo.getReadableVersion()}
2930
`
3031

0 commit comments

Comments
 (0)