# Commands

## setRoot

`setRoot(simpleApi: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L15)

---

## setDefaultOptions

`setDefaultOptions(options: any): void`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L38)

---

## mergeOptions

`mergeOptions(componentId: any, options: any): void`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L46)

---

## showModal

`showModal(simpleApi: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L54)

---

## dismissModal

`dismissModal(componentId: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L65)

---

## dismissAllModals

`dismissAllModals(): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L72)

---

## push

`push(componentId: any, simpleApi: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L79)

---

## pop

`pop(componentId: any, options: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L91)

---

## popTo

`popTo(componentId: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L98)

---

## popToRoot

`popToRoot(componentId: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L105)

---

## setStackRoot

`setStackRoot(componentId: any, simpleApi: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L112)

---

## showOverlay

`showOverlay(simpleApi: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L124)

---

## dismissOverlay

`dismissOverlay(componentId: any): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L136)

---

## getLaunchArgs

`getLaunchArgs(): any`

[source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L143)

---