# NativeCommandsSender ## setRoot `setRoot(layoutTree: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L9) --- ## setDefaultOptions `setDefaultOptions(options: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L13) --- ## mergeOptions `mergeOptions(componentId: string, options: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L17) --- ## push `push(onComponentId: string, layout: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L21) --- ## pop `pop(componentId: string, options: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L25) --- ## popTo `popTo(componentId: string): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L29) --- ## popToRoot `popToRoot(componentId: string): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L33) --- ## setStackRoot `setStackRoot(onComponentId: string, layout: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L37) --- ## showModal `showModal(layout: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L41) --- ## dismissModal `dismissModal(componentId: string): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L45) --- ## dismissAllModals `dismissAllModals(): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L49) --- ## showOverlay `showOverlay(layout: object): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L53) --- ## dismissOverlay `dismissOverlay(componentId: string): any` [source](https://github.com/wix/react-native-navigation/blob/v2/lib/src/adapters/NativeCommandsSender.ts#L57) ---