[Settings > General] Expose Discord's build number (#1)

This commit is contained in:
Jack 2023-01-09 18:20:27 -05:00 committed by GitHub
parent 0abff6f421
commit 564a427971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",
},
{