# Commands ## setRoot `setRoot(simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L12) --- ## setDefaultOptions `setDefaultOptions(options: any): void` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L22) --- ## mergeOptions `mergeOptions(componentId: any, options: any): void` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L30) --- ## showModal `showModal(simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L38) --- ## dismissModal `dismissModal(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L48) --- ## dismissAllModals `dismissAllModals(): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L54) --- ## push `push(componentId: any, simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L60) --- ## pop `pop(componentId: any, options: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L71) --- ## popTo `popTo(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L77) --- ## popToRoot `popToRoot(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L83) --- ## setStackRoot `setStackRoot(componentId: any, simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L89) --- ## showOverlay `showOverlay(simpleApi: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L100) --- ## dismissOverlay `dismissOverlay(componentId: any): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/commands/Commands.ts#L111) ---