[Shims] Properly shim React

This commit is contained in:
Beef 2023-01-01 22:05:53 +00:00
parent 48138c5b7c
commit fee7f345fa
8 changed files with 18 additions and 10 deletions

View file

@ -1,5 +1,5 @@
import { Asset } from "@types";
import { React, ReactNative as RN } from "@metro/common";
import { ReactNative as RN } from "@metro/common";
import { showToast } from "@ui/toasts";
import { getAssetIDByName } from "@ui/assets";
import { Forms } from "@ui/components";

View file

@ -1,4 +1,3 @@
import { React } from "@metro/common";
import { Forms } from "@ui/components";
import { getAssetIDByName } from "@ui/assets";

View file

@ -1,4 +1,3 @@
import { React } from "@metro/common";
import { getAssetIDByName } from "@ui/assets";
import { showToast } from "@ui/toasts";
import { Forms } from "@ui/components";

View file

@ -1,9 +1,10 @@
import { React, i18n } from "@metro/common";
import { i18n } from "@metro/common";
import { findByDisplayName } from "@metro/filters";
import { after } from "@lib/patcher";
import findInReactTree from "@utils/findInReactTree";
import SettingsSection from "@ui/settings/components/SettingsSection";
import General from "@ui/settings/pages/General";
import Plugins from "@ui/settings/pages/Plugins";
import AssetBrowser from "@ui/settings/pages/AssetBrowser";
const screensModule = findByDisplayName("getScreens", false);

View file

@ -1,4 +1,4 @@
import { React, ReactNative as RN } from "@metro/common";
import { ReactNative as RN } from "@metro/common";
import { Forms } from "@ui/components";
import { all } from "@ui/assets";
import AssetDisplay from "@ui/settings/components/AssetDisplay";

View file

@ -1,4 +1,4 @@
import { React, ReactNative as RN, url } from "@metro/common";
import { ReactNative as RN, url } from "@metro/common";
import { DISCORD_SERVER, GITHUB } from "@lib/constants";
import { connectToDebugger } from "@lib/debug";
import { getAssetIDByName } from "@ui/assets";