From 564a4279716876572b48e41939b02387f6122118 Mon Sep 17 00:00:00 2001 From: Jack <30497388+FieryFlames@users.noreply.github.com> Date: Mon, 9 Jan 2023 18:20:27 -0500 Subject: [PATCH] [Settings > General] Expose Discord's build number (#1) --- src/ui/settings/pages/General.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/settings/pages/General.tsx b/src/ui/settings/pages/General.tsx index bd7cc9e..847132c 100644 --- a/src/ui/settings/pages/General.tsx +++ b/src/ui/settings/pages/General.tsx @@ -6,6 +6,7 @@ import { Forms } from "@ui/components"; import Version from "@ui/settings/components/Version"; const { FormRow, FormSection, FormInput, FormDivider } = Forms; +const InfoDictionaryManager = RN.NativeModules.InfoDictionaryManager; const hermesProps = window.HermesInternal.getRuntimeProperties(); const rnVer = RN.Platform.constants.reactNativeVersion; @@ -15,7 +16,7 @@ export default function General() { const versions = [ { label: "Discord", - version: RN.NativeModules.InfoDictionaryManager.Version, + version: `${InfoDictionaryManager.Version} (${InfoDictionaryManager.Build})`, icon: "Discord", }, {