2023-04-15 00:49:59 +01:00
|
|
|
import { ReactNative as RN } from "@metro/common";
|
2023-08-19 02:42:34 +08:00
|
|
|
import { findByDisplayName, findByName, findByProps } from "@metro/filters";
|
2023-02-13 20:19:55 +00:00
|
|
|
|
|
|
|
|
// Discord
|
|
|
|
|
export const Forms = findByProps("Form", "FormSection");
|
|
|
|
|
export const General = findByProps("Button", "Text", "View");
|
2023-08-19 02:42:34 +08:00
|
|
|
export const Alert = findByDisplayName("FluxContainer(Alert)");
|
2023-04-13 18:42:14 +00:00
|
|
|
export const Button = findByProps("Looks", "Colors", "Sizes") as React.ComponentType<any> & { Looks: any, Colors: any, Sizes: any };
|
|
|
|
|
export const HelpMessage = findByName("HelpMessage");
|
2023-04-15 00:49:59 +01:00
|
|
|
// React Native's included SafeAreaView only adds padding on iOS.
|
2023-12-21 03:30:21 +08:00
|
|
|
export const SafeAreaView = findByProps("useSafeAreaInsets").SafeAreaView as any;
|
2023-02-13 20:19:55 +00:00
|
|
|
|
|
|
|
|
// Vendetta
|
2023-02-26 02:20:01 +00:00
|
|
|
export { default as Summary } from "@ui/components/Summary";
|
2023-04-13 18:42:14 +00:00
|
|
|
export { default as ErrorBoundary } from "@ui/components/ErrorBoundary";
|
2023-04-15 02:05:35 +01:00
|
|
|
export { default as Codeblock } from "@ui/components/Codeblock";
|
|
|
|
|
export { default as Search } from "@ui/components/Search";
|