Skip to content

Commit

Permalink
fix(polyfill/vendetta): unproxy some components
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed May 24, 2024
1 parent 1a660c9 commit f136597
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/polyfills/vendettaObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import * as metro from "@metro";
import * as common from "@metro/common";
import { Forms } from "@metro/common/components";
import * as commonComponents from "@metro/common/components";
import { getFindContext } from "@metro/proxy";
import * as alerts from "@ui/alerts";
import * as color from "@ui/color";
import * as components from "@ui/components";
Expand Down Expand Up @@ -142,10 +143,10 @@ export const initVendettaObject = (): any => {
components: {
Forms,
General: common.ReactNative,
Alert: commonComponents.Alert,
Button: commonComponents.Button,
HelpMessage: commonComponents.HelpMessage,
SafeAreaView: commonComponents.SafeAreaView,
get Alert() { return getFindContext(commonComponents.Alert)!.unproxy(); },
get Button() { return getFindContext(commonComponents.Button)!.unproxy(); },
get HelpMessage() { return getFindContext(commonComponents.HelpMessage)!.unproxy(); },
get SafeAreaView() { return getFindContext(commonComponents.SafeAreaView)!.unproxy(); },
Summary: components.Summary,
ErrorBoundary: components.ErrorBoundary,
Codeblock: components.Codeblock,
Expand Down

0 comments on commit f136597

Please sign in to comment.