|
|
@@ -1,14 +1,7 @@
|
|
1
|
1
|
// @flow
|
|
2
|
2
|
|
|
3
|
3
|
import React from 'react';
|
|
4
|
|
-import {
|
|
5
|
|
- Alert,
|
|
6
|
|
- SafeAreaView,
|
|
7
|
|
- ScrollView,
|
|
8
|
|
- Switch,
|
|
9
|
|
- TextInput,
|
|
10
|
|
- View
|
|
11
|
|
-} from 'react-native';
|
|
|
4
|
+import { Alert, NativeModules, SafeAreaView, ScrollView, Switch, Text, TextInput, View } from 'react-native';
|
|
12
|
5
|
|
|
13
|
6
|
import { ColorSchemeRegistry } from '../../../base/color-scheme';
|
|
14
|
7
|
import { translate } from '../../../base/i18n';
|
|
|
@@ -27,6 +20,11 @@ import { normalizeUserInputURL } from '../../functions';
|
|
27
|
20
|
import styles from './styles';
|
|
28
|
21
|
import { HeaderLabel } from '../../../base/react/components/native';
|
|
29
|
22
|
|
|
|
23
|
+/**
|
|
|
24
|
+ * Application information module.
|
|
|
25
|
+ */
|
|
|
26
|
+const { AppInfo } = NativeModules;
|
|
|
27
|
+
|
|
30
|
28
|
type Props = AbstractProps & {
|
|
31
|
29
|
|
|
32
|
30
|
/**
|
|
|
@@ -193,6 +191,15 @@ class SettingsView extends AbstractSettingsView<Props> {
|
|
193
|
191
|
onValueChange = { this._onStartVideoMutedChange }
|
|
194
|
192
|
value = { _settings.startWithVideoMuted } />
|
|
195
|
193
|
</FormRow>
|
|
|
194
|
+ <FormSectionHeader
|
|
|
195
|
+ label = 'settingsView.buildInfoSection' />
|
|
|
196
|
+ <FormRow
|
|
|
197
|
+ fieldSeparator = { true }
|
|
|
198
|
+ label = 'settingsView.version'>
|
|
|
199
|
+ <Text>
|
|
|
200
|
+ { `${AppInfo.version} build ${AppInfo.buildNumber}` }
|
|
|
201
|
+ </Text>
|
|
|
202
|
+ </FormRow>
|
|
196
|
203
|
</ScrollView>
|
|
197
|
204
|
</SafeAreaView>
|
|
198
|
205
|
);
|