fix(core/patches/wrapSafeAreaProvider): remove broken patch
This commit is contained in:
parent
ded31aabfe
commit
dfb036740a
2 changed files with 0 additions and 17 deletions
|
|
@ -1,15 +0,0 @@
|
||||||
import { after } from "@lib/api/patcher";
|
|
||||||
import { _lazyContextSymbol } from "@metro/lazy";
|
|
||||||
import { findByNameLazy, findByPropsLazy } from "@metro/wrappers";
|
|
||||||
|
|
||||||
export default function wrapSafeAreaProvider() {
|
|
||||||
const { SafeAreaProvider } = findByPropsLazy('useSafeAreaInsets');
|
|
||||||
|
|
||||||
return after("default", findByNameLazy('App', false), function (_, ret) {
|
|
||||||
return (
|
|
||||||
<SafeAreaProvider>
|
|
||||||
{ret}
|
|
||||||
</SafeAreaProvider>
|
|
||||||
)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import patchErrorBoundary from "@core/debug/patches/patchErrorBoundary";
|
import patchErrorBoundary from "@core/debug/patches/patchErrorBoundary";
|
||||||
import wrapSafeAreaProvider from "@core/patches/wrapSafeAreaProvider";
|
|
||||||
import initFixes from "@core/fixes";
|
import initFixes from "@core/fixes";
|
||||||
import { initFetchI18nStrings } from "@core/i18n";
|
import { initFetchI18nStrings } from "@core/i18n";
|
||||||
import initSettings from "@core/ui/settings";
|
import initSettings from "@core/ui/settings";
|
||||||
|
|
@ -20,7 +19,6 @@ import * as lib from "./lib";
|
||||||
export default async () => {
|
export default async () => {
|
||||||
// Load everything in parallel
|
// Load everything in parallel
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
wrapSafeAreaProvider(),
|
|
||||||
initThemes(),
|
initThemes(),
|
||||||
injectFluxInterceptor(),
|
injectFluxInterceptor(),
|
||||||
patchSettings(),
|
patchSettings(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue