Skip to content

Commit

Permalink
change where version comes from
Browse files Browse the repository at this point in the history
  • Loading branch information
drewvolz authored and hawkrives committed Aug 4, 2017
1 parent b24ba78 commit 45c865b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions source/views/settings/sections/odds-and-ends.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// @flow
import React from 'react'
import {View} from 'react-native'
import {getVersion} from 'react-native-device-info'
import {Cell, Section} from 'react-native-tableview-simple'
import {allaboutolaf} from '../../../../package.json'
import {version, allaboutolaf} from '../../../../package.json'
import type {TopLevelViewPropsType} from '../../types'
import {setFeedbackStatus} from '../../../flux/parts/settings'
import {connect} from 'react-redux'
Expand Down Expand Up @@ -41,8 +40,6 @@ class OddsAndEndsSection extends React.Component {
? '[dev] '
: allaboutolaf.source ? `[${allaboutolaf.source}] ` : ''

const versionString = getVersion()

return (
<View>
<Section header="MISCELLANY">
Expand All @@ -59,7 +56,7 @@ class OddsAndEndsSection extends React.Component {
<Cell
cellStyle="RightDetail"
title="Version"
detail={`${versionMoniker}${versionString}`}
detail={`${versionMoniker}${version}`}
/>

<CellToggle
Expand Down
3 changes: 2 additions & 1 deletion source/views/settings/sections/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {Section} from 'react-native-tableview-simple'
import type {TopLevelViewPropsType} from '../../types'
import Communications from 'react-native-communications'
import DeviceInfo from 'react-native-device-info'
import {version} from '../../../../package.json'
import {PushButtonCell} from '../components/push-button'
import {refreshApp} from '../../../lib/refresh'

Expand All @@ -24,7 +25,7 @@ export default class SupportSection extends React.Component {
----- Please do not edit below here -----
${DeviceInfo.getBrand()} ${DeviceInfo.getModel()}
${DeviceInfo.getDeviceId()}
${DeviceInfo.getSystemName()} ${DeviceInfo.getSystemVersion()}
${DeviceInfo.getSystemName()} ${version}
${DeviceInfo.getReadableVersion()}
`

Expand Down

0 comments on commit 45c865b

Please sign in to comment.