[Metro] Hoist Discord's constants
This commit is contained in:
parent
da83d4756a
commit
a9cc702956
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
import { find, findByProps } from "@metro/filters";
|
import { find, findByProps } from "@metro/filters";
|
||||||
|
|
||||||
// Discord
|
// Discord
|
||||||
export const constants = findByProps("API_HOST");
|
export { constants } from "@metro/hoist";
|
||||||
export const channels = findByProps("getVoiceChannelId");
|
export const channels = findByProps("getVoiceChannelId");
|
||||||
export const i18n = findByProps("Messages");
|
export const i18n = findByProps("Messages");
|
||||||
export const url = findByProps("openURL");
|
export const url = findByProps("openURL");
|
||||||
|
|
|
@ -10,5 +10,8 @@ window.React = basicFind("createElement") as typeof import("react");;
|
||||||
// Export ReactNative
|
// Export ReactNative
|
||||||
export const ReactNative = basicFind("Text") as typeof import("react-native");
|
export const ReactNative = basicFind("Text") as typeof import("react-native");
|
||||||
|
|
||||||
|
// Export Discord's constants
|
||||||
|
export const constants = basicFind("ThemeColorMap");
|
||||||
|
|
||||||
// Export moment
|
// Export moment
|
||||||
export const moment = basicFind("isMoment");
|
export const moment = basicFind("isMoment");
|
Loading…
Reference in a new issue