[Settings > General] Expose information about the device
This commit is contained in:
parent
0ee50404a9
commit
8b480b92e2
2 changed files with 75 additions and 2 deletions
|
@ -40,6 +40,34 @@ export default function General() {
|
|||
},
|
||||
];
|
||||
|
||||
const platformInfo = [
|
||||
{
|
||||
label: "Operating System",
|
||||
version: `${debugInfo.os.name} ${debugInfo.os.version}`,
|
||||
icon: "ic_cog_24px"
|
||||
},
|
||||
...(debugInfo.os.sdk ? [{
|
||||
label: "Software Development Kit",
|
||||
version: debugInfo.os.sdk,
|
||||
icon: "ic_cog_24px"
|
||||
}] : []),
|
||||
{
|
||||
label: "Manufacturer",
|
||||
version: debugInfo.device.manufacturer,
|
||||
icon: "ic_hammer_and_chisel_24px"
|
||||
},
|
||||
{
|
||||
label: "Brand",
|
||||
version: debugInfo.device.brand,
|
||||
icon: "ic_megaphone_16px"
|
||||
},
|
||||
{
|
||||
label: "Model",
|
||||
version: debugInfo.device.model,
|
||||
icon: "ic_phonelink_24px"
|
||||
}
|
||||
];
|
||||
|
||||
return (
|
||||
<RN.ScrollView>
|
||||
<FormSection title="Links">
|
||||
|
@ -65,6 +93,14 @@ export default function General() {
|
|||
</>
|
||||
))}
|
||||
</FormSection>
|
||||
<FormSection title="Platform Info">
|
||||
{platformInfo.map((p) => (
|
||||
<>
|
||||
<Version label={p.label} version={p.version} icon={p.icon} />
|
||||
<FormDivider />
|
||||
</>
|
||||
))}
|
||||
</FormSection>
|
||||
<FormSection title="Actions">
|
||||
<FormRow
|
||||
label="Reload Discord"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue