File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
source/views/settings/sections Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11// @flow
22import React from 'react'
33import { View } from 'react-native'
4- import { getVersion } from 'react-native-device-info'
54import { Cell , Section } from 'react-native-tableview-simple'
6- import { allaboutolaf } from '../../../../package.json'
5+ import { version , allaboutolaf } from '../../../../package.json'
76import type { TopLevelViewPropsType } from '../../types'
87import { setFeedbackStatus } from '../../../flux/parts/settings'
98import { 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
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import {Section} from 'react-native-tableview-simple'
55import type { TopLevelViewPropsType } from '../../types'
66import Communications from 'react-native-communications'
77import DeviceInfo from 'react-native-device-info'
8+ import { version } from '../../../../package.json'
89import { PushButtonCell } from '../components/push-button'
910import { 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
You can’t perform that action at this time.
0 commit comments