[Settings > General] Expose Discord's build number (#1)
This commit is contained in:
parent
0abff6f421
commit
564a427971
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import { Forms } from "@ui/components";
|
||||||
import Version from "@ui/settings/components/Version";
|
import Version from "@ui/settings/components/Version";
|
||||||
|
|
||||||
const { FormRow, FormSection, FormInput, FormDivider } = Forms;
|
const { FormRow, FormSection, FormInput, FormDivider } = Forms;
|
||||||
|
const InfoDictionaryManager = RN.NativeModules.InfoDictionaryManager;
|
||||||
const hermesProps = window.HermesInternal.getRuntimeProperties();
|
const hermesProps = window.HermesInternal.getRuntimeProperties();
|
||||||
const rnVer = RN.Platform.constants.reactNativeVersion;
|
const rnVer = RN.Platform.constants.reactNativeVersion;
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@ export default function General() {
|
||||||
const versions = [
|
const versions = [
|
||||||
{
|
{
|
||||||
label: "Discord",
|
label: "Discord",
|
||||||
version: RN.NativeModules.InfoDictionaryManager.Version,
|
version: `${InfoDictionaryManager.Version} (${InfoDictionaryManager.Build})`,
|
||||||
icon: "Discord",
|
icon: "Discord",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue