# Commands ## setRoot `setRoot(simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L13) --- ## setDefaultOptions `setDefaultOptions(options: any): void` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L23) --- ## mergeOptions `mergeOptions(componentId: any, options: any): void` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L31) --- ## showModal `showModal(simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L39) --- ## dismissModal `dismissModal(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L49) --- ## dismissAllModals `dismissAllModals(): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L55) --- ## push `push(componentId: any, simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L61) --- ## pop `pop(componentId: any, options: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L72) --- ## popTo `popTo(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L78) --- ## popToRoot `popToRoot(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L84) --- ## setStackRoot `setStackRoot(componentId: any, simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L90) --- ## showOverlay `showOverlay(simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L101) --- ## dismissOverlay `dismissOverlay(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L112) ---