[UI > Settings] Complete overhaul, support You tab
You tab support has a few issues, namely: * Text inputs automatically close the keyboard * The Developer toggle is not reactive * Plugins will need to update if they set navigation options in their settings, otherwise an infinite re-render occurs Co-authored-by: Jack Matthews <jm5112356@gmail.com>
This commit is contained in:
parent
bc03464da3
commit
fda8e31bb1
8 changed files with 222 additions and 112 deletions
|
@ -5,6 +5,7 @@ import { useProxy } from "@lib/storage";
|
|||
import { getAssetIDByName } from "@ui/assets";
|
||||
import { Forms, ErrorBoundary } from "@ui/components";
|
||||
import settings, { loaderConfig } from "@lib/settings";
|
||||
import AssetBrowser from "@ui/settings/pages/AssetBrowser";
|
||||
|
||||
const { FormSection, FormRow, FormSwitchRow, FormInput, FormDivider } = Forms;
|
||||
const { hideActionSheet } = findByProps("openLazy", "hideActionSheet");
|
||||
|
@ -79,7 +80,10 @@ export default function Developer() {
|
|||
label="Asset Browser"
|
||||
leading={<FormRow.Icon source={getAssetIDByName("ic_image")} />}
|
||||
trailing={FormRow.Arrow}
|
||||
onPress={() => navigation.push("VendettaAssetBrowser")}
|
||||
onPress={() => navigation.push("VendettaCustomPage", {
|
||||
title: "Asset Browser",
|
||||
render: AssetBrowser,
|
||||
})}
|
||||
/>
|
||||
<FormDivider />
|
||||
<FormRow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue