[Metro > Common] Add commands module
This commit is contained in:
parent
119060a43b
commit
1891a46eb9
4 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,7 @@
|
|||
import { ApplicationCommand } from "@types";
|
||||
import { findByProps } from "@metro/filters";
|
||||
import { commands as commandsModule } from "@metro/common";
|
||||
import { after } from "@lib/patcher";
|
||||
|
||||
const commandsModule = findByProps("getBuiltInCommands")
|
||||
let commands: ApplicationCommand[] = [];
|
||||
|
||||
export function patchCommands() {
|
||||
|
|
|
@ -10,6 +10,7 @@ export const stylesheet = findByProps("createThemedStyleSheet");
|
|||
export const clipboard = findByProps("setString", "getString", "hasString");
|
||||
export const assets = findByProps("registerAsset");
|
||||
export const invites = findByProps("acceptInviteAndTransitionToInviteChannel");
|
||||
export const commands = findByProps("getBuiltInCommands");
|
||||
export const navigation = findByProps("pushLazy");
|
||||
export const navigationStack = findByProps("createStackNavigator");
|
||||
export const NavigationNative = findByProps("NavigationContainer");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue