--- title: Navigation API description: The Navigation API enables POS UI extension to navigate between screens. api_version: 2024-04 api_name: pos-ui-extensions source_url: html: 'https://shopify.dev/docs/api/pos-ui-extensions/2024-04/apis/navigation-api' md: >- https://shopify.dev/docs/api/pos-ui-extensions/2024-04/apis/navigation-api.md --- # Navigation APIAPIs Requires pos.home.modal.render The Navigation API enables POS UI extension to navigate between screens. ## NavigationApi * navigate (screenName: string, params?: any) => void required Navigate to a route in current navigation tree. Pushes the specified screen if it isn't present in the navigation tree, goes back to a created screen otherwise. * pop () => void required Pops the currently shown screen * dismiss () => void required Dismisses the modal highest on the stack ## Examples Examples of using the Navigation API ### Examples * #### Navigate between two screens ##### React ```tsx import React from 'react'; import { reactExtension, useApi, Navigator, Screen, Button, } from '@shopify/ui-extensions-react/point-of-sale'; const SmartGridModal = () => { const api = useApi<'pos.home.modal.render'>(); return (