import { ReactNative as RN } from "@metro/common"; import { findByName, findByProps } from "@metro/filters"; // Discord export const Forms = findByProps("Form", "FormSection"); export const General = findByProps("Button", "Text", "View"); export const Alert = findByProps("alertDarkStyles", "alertLightStyles").default; export const Button = findByProps("Looks", "Colors", "Sizes") as React.ComponentType & { Looks: any, Colors: any, Sizes: any }; export const HelpMessage = findByName("HelpMessage"); // React Native's included SafeAreaView only adds padding on iOS. export const SafeAreaView = findByProps("useSafeAreaInsets").SafeAreaView as typeof RN.SafeAreaView; // Vendetta export { default as Summary } from "@ui/components/Summary"; export { default as ErrorBoundary } from "@ui/components/ErrorBoundary"; export { default as Codeblock } from "@ui/components/Codeblock"; export { default as Search } from "@ui/components/Search";