{"_id":"@bedrock-core/navigation","_rev":"9-25a24f4ee0d9906425e67d30d0d491b4","name":"@bedrock-core/navigation","dist-tags":{"latest":"0.9.3"},"versions":{"0.6.0":{"name":"@bedrock-core/navigation","version":"0.6.0","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.6.0","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"a8b8b91de76ad429bd3372af6d77aa3e305f0c7b","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.6.0.tgz","fileCount":9,"integrity":"sha512-+9Fi1Solz6uk0CzTHBbxnlGj8WgqkdZZtOsBmxefGHIQ4a0g8OCx36IORXIUpxw3am+004sY2izm10Kl5XDqyg==","signatures":[{"sig":"MEUCIDTTTITFPZ9y0+AGWApjnZ74z3vo63X//gaZH9hakMVtAiEA48vqjkM+JiC84j0ET+h2lD2S00zsBkZveBP3Div+xI0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38503},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"83f41f96d145f61900b49c100f58a50026466382","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"packageManager":"yarn@4.9.3","devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.6.0"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.6.0_1781296001057_0.36096434852103276","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@bedrock-core/navigation","version":"0.7.0","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.7.0","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"d534335ae00b57b38513699939cda5bf88cf0124","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.7.0.tgz","fileCount":9,"integrity":"sha512-LDEaXZRCZ/qEwJuJVBJ+tjO3OtMbPaYAImwqzCIFc3K51yeyNoZkaIXHw5uNW0HLA+U7SqE5Cgr8enNpOO2Auw==","signatures":[{"sig":"MEQCIFZWYlXiBayzghNJaJnxekrrGkYX3XBx3WQovkedE0TXAiACdGGndvgbb9ujUnYZt50IML49dX/nTxXE+qCxyDLrrA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38469},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"5594f091308532cdeeac42b0c499fb0f126e7b16","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.7.0"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.7.0_1781565246897_0.19505253989339155","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@bedrock-core/navigation","version":"0.8.0","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.8.0","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"29ecf46c2aecff2de4a12229a333a21e6d44cbed","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.8.0.tgz","fileCount":9,"integrity":"sha512-g0NWBHUhmQlOhBm8dLlsI0GzEJGS0XP4GeKiTE+dY0xYkZvJLyRe5EXIhV0UfoCQdXmBRhB3HByqlu+XAbZ7zA==","signatures":[{"sig":"MEYCIQDb0u+QcMNtzpvvwh8HP0sKwb7aRNWxO/M28IojmQfVGAIhAOK77erQlfgE2Btq7wrU5v7lAJqQBQuZG0CXppCE7c2e","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38469},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"827b920b19c098ae3d371d69063cef27b3cc8b18","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.8.0"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.8.0_1782376131320_0.1123694948016245","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"@bedrock-core/navigation","version":"0.8.1","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.8.1","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"924bf2e64af888342636e41b33fc866976eadaa4","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.8.1.tgz","fileCount":9,"integrity":"sha512-GAy/28eg1LliuQ3ZhlKM53y140E77BVHIKrELxY9OOAnCCFu9q8oXxI/MHBlblZovXp3hb95KPywITpgFbzGFw==","signatures":[{"sig":"MEUCIFpxhQO3iaiMvEwTaDuc7shoTw5viVEDBXfawRxUOkHnAiEAsLVwJhC8r4PvNXrl1qsXeG8eNyp+BMzymBd4wa407sE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38469},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"96626487bb74b9fc20ff221eb3b069e6cdaa8405","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.8.1"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.8.1_1782395753400_0.9544877623318151","host":"s3://npm-registry-packages-npm-production"}},"0.8.2":{"name":"@bedrock-core/navigation","version":"0.8.2","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.8.2","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"47c5dbbad55cc211e288b7b1076558869c52cc16","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.8.2.tgz","fileCount":9,"integrity":"sha512-A6g+nNS2h7m9ApjvrZELbcR8/thrsYiLd8diw+U+KbXPlyb04zk7ERx+Tjnlpm1X+IvVyXNC8CCV62pJBRZb4w==","signatures":[{"sig":"MEQCIA+WGEvP/6fH6a7o0gN7ltzObK8jiHh6x/yrTYiQJOz2AiA9NdRFVWnC2cvTTSS+XyHM8t9mOy6mqYhe+cNx35MnvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38469},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"49d0282d1f112acbd1b82fb1a4678cdd510c2365","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.8.2"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.8.2_1782396874981_0.6395347047933673","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@bedrock-core/navigation","version":"0.9.0","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.9.0","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"c9b7ddd0c21576510195fd51c0fef5f151e8b095","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.9.0.tgz","fileCount":9,"integrity":"sha512-U9K3ekcyljYVTcDN8vZbj6yKwyNLE7++5WqxOMIOVqM+t7jodRGkazWvA5gji3KKkw3XDLy+ubV3fWfr4hGJvQ==","signatures":[{"sig":"MEQCIFKKp+cLbZdO7i/2TR3JgfOV07cH/y0du6IJ9iJdIoZPAiB72T3DqRRl/jWwwThZtlV1a6RsqIEUrwCMhzj3Yx5Tjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38795},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"c880f1bc66a28abdfe36571b031beee5b65f956d","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.9.0"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.9.0_1783290907159_0.171078304463383","host":"s3://npm-registry-packages-npm-production"}},"0.9.1":{"name":"@bedrock-core/navigation","version":"0.9.1","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.9.1","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"d8b3c14473f94b038e6f7af54b87d4a3a0967398","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.9.1.tgz","fileCount":9,"integrity":"sha512-YaeAU42Mwn8dKsy+T5Rgos0xb8LaoPYEvdE6+mYYXAMW9aUqsA2VUxaCEfhskGW9wwrrHvdC1ZANt0Bu3Sgsqw==","signatures":[{"sig":"MEQCIDkoR8ZasDm/vLBdkmTNSVjz0df3AvhdOMKjXR1PB+wIAiBUlv9jUUwvkQpO/FGzML5zMAjJfcwezat3uIcsdLbUJA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38795},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"f53889acb640b852b26fab2cf224e463eec83e0f","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.9.1"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.9.1_1783486904089_0.47143227700882173","host":"s3://npm-registry-packages-npm-production"}},"0.9.2":{"name":"@bedrock-core/navigation","version":"0.9.2","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"author":{"name":"DrAv0011"},"license":"MIT","_id":"@bedrock-core/navigation@0.9.2","maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"contributors":[{"url":"https://drav.dev","name":"DrAv0011","email":"contact@drav.dev"}],"homepage":"https://github.com/bedrock-core/ui#readme","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"dist":{"shasum":"5b543a18b00db5b9f7b74bc29881d43b3416bb42","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.9.2.tgz","fileCount":9,"integrity":"sha512-TneCihD3NK3yYRSxa9FLJgWC1SwzQ/+yFUDwW+jH3EbwL1CpMRlhwpz8bjwK6Qv2udHSudf+OEJbYHbtwCEkxg==","signatures":[{"sig":"MEUCICDmXveokpQolOBFEw4zWwnfB5NY0lIjlmNWjIgxq/OOAiEArDB1JLXhqkhwNNmtBg5gLc/4SwTVori5FfQZecQ47uM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38795},"main":"src/index.ts","type":"module","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"51153c3e8ed175819d2fb7126f61b3193fc01d59","scripts":{"lint":"eslint .","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"drav0011","email":"drav0011@gmail.com"},"repository":{"url":"git+https://github.com/bedrock-core/ui.git","type":"git"},"_npmVersion":"10.8.2","description":"@bedrock-core/ui navigation system","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@bedrock-core/ui-runtime":"^0.9.2"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.9.2_1783759022017_0.44603184954223396","host":"s3://npm-registry-packages-npm-production"}},"0.9.3":{"name":"@bedrock-core/navigation","version":"0.9.3","description":"@bedrock-core/ui navigation system","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"license":"MIT","author":{"name":"DrAv0011"},"contributors":[{"name":"DrAv0011","email":"contact@drav.dev","url":"https://drav.dev"}],"repository":{"type":"git","url":"git+https://github.com/bedrock-core/ui.git"},"type":"module","main":"src/index.ts","types":"src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"publishConfig":{"access":"public"},"sideEffects":false,"scripts":{"build":"tsc -p tsconfig.json","lint":"eslint ."},"devDependencies":{"@bedrock-core/ui-runtime":"workspace:*","typescript":"^6.0.3"},"peerDependencies":{"@bedrock-core/ui-runtime":"*"},"gitHead":"3a6d92ac470eb2b0f59b7adc9bf55b2fe25f8458","_id":"@bedrock-core/navigation@0.9.3","bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"homepage":"https://github.com/bedrock-core/ui#readme","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-JATOks0K5K7EJZ45r7V5PxMnPDCs1kZYkzoi/jVbEjeKzbLVm7KaRHqv/GHNUbN4f/f08mVaKP+YEctBkaiXVQ==","shasum":"cf9c526fc851ad09098ced265b12133bd496e254","tarball":"https://registry.npmjs.org/@bedrock-core/navigation/-/navigation-0.9.3.tgz","fileCount":9,"unpackedSize":39517,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bedrock-core%2fnavigation@0.9.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCAqabjclpX8pbSXPnkc3xetpNyZzk+7318dTg2Qh+FBwIhALUnI93phCy55TCvT5VvRtEiQQQesv6Su6oMDeLvytej"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:71924b59-cf04-410e-b807-48291c3f5c7b"}},"directories":{},"maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/navigation_0.9.3_1787103836113_0.6246377243943979"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-12T20:26:40.873Z","modified":"2026-08-19T01:43:56.646Z","0.6.0":"2026-06-12T20:26:41.202Z","0.7.0":"2026-06-15T23:14:07.058Z","0.8.0":"2026-06-25T08:28:51.496Z","0.8.1":"2026-06-25T13:55:53.565Z","0.8.2":"2026-06-25T14:14:35.109Z","0.9.0":"2026-07-05T22:35:07.283Z","0.9.1":"2026-07-08T05:01:44.229Z","0.9.2":"2026-07-11T08:37:02.146Z","0.9.3":"2026-08-19T01:43:56.295Z"},"bugs":{"url":"https://github.com/bedrock-core/ui/issues"},"author":{"name":"DrAv0011"},"license":"MIT","homepage":"https://github.com/bedrock-core/ui#readme","keywords":["ui","navigation","minecraft","bedrock","typescript","framework"],"repository":{"type":"git","url":"git+https://github.com/bedrock-core/ui.git"},"description":"@bedrock-core/ui navigation system","contributors":[{"name":"DrAv0011","email":"contact@drav.dev","url":"https://drav.dev"}],"maintainers":[{"name":"drav0011","email":"drav0011@gmail.com"}],"readme":"# @bedrock-core/navigation\n\n![Logo](https://raw.githubusercontent.com/bedrock-core/ui/main/assets/logo/title.png)\n\nStack-based navigation for [`@bedrock-core/ui`](https://github.com/bedrock-core/ui), inspired by\nReact Navigation and adapted to the runtime's one-render-per-player model. Screens are components,\ntransitions are actions, and route params are typed by a route map you declare once.\n\n> ⚠️ MVP scope: stack navigation only. No tabs, nested navigators, deep linking, state\n> persistence, transition animations, or keep-alive for inactive routes.\n\n## Install\n\n```bash\nyarn add @bedrock-core/navigation\n```\n\nIt also ships inside the umbrella package as `@bedrock-core/ui/navigation`.\n\n## What it gives you\n\n- `NavigationContainer` — the provider that holds a player's navigation state; the root you pass\n  to `render()`\n- `createStackNavigator(config)` — returns `{ Navigator, routeNames, initialRouteName }` from a\n  `{ screens, initialRouteName? }` config; a screen entry is a component or\n  `{ screen, initialParams }`\n- `useNavigation()` — `navigate`, `push`, `goBack`, `canGoBack`, `reset`, `setParams`, `getState`\n- `useRoute()` — the active `{ key, name, params }`\n- `stackReducer` with its `StackAction` union and `ScreenDefaults` map, for hosts that seed or\n  drive the stack themselves (`@bedrock-core/config` builds an initial state from a fired command\n  this way)\n\n## Usage\n\n```tsx\n/** @jsxImportSource @bedrock-core/ui */\nimport { NavigationContainer, createStackNavigator, type ScreenProps } from '@bedrock-core/navigation';\nimport { Button, Text, render, type JSX } from '@bedrock-core/ui';\nimport type { Player } from '@minecraft/server';\n\ntype AppRoutes = { Home: undefined; Profile: { userId: number } };\n\nfunction HomeScreen({ navigation }: ScreenProps<AppRoutes, 'Home'>): JSX.Element {\n  return (\n    <Button onPress={(): void => navigation.navigate('Profile', { userId: 42 })}>\n      <Text>{'Go to Profile'}</Text>\n    </Button>\n  );\n}\n\nfunction ProfileScreen({ navigation, route }: ScreenProps<AppRoutes, 'Profile'>): JSX.Element {\n  return (\n    <>\n      <Text>{`Profile: ${route.params.userId}`}</Text>\n      <Button onPress={(): void => navigation.goBack()}>\n        <Text>{'Back'}</Text>\n      </Button>\n    </>\n  );\n}\n\nconst Stack = createStackNavigator<AppRoutes>({\n  initialRouteName: 'Home',\n  screens: { Home: HomeScreen, Profile: { screen: ProfileScreen, initialParams: { userId: 0 } } },\n});\n\nexport function openApp(player: Player): void {\n  render(\n    <NavigationContainer>\n      <Stack.Navigator />\n    </NavigationContainer>,\n    player,\n  );\n}\n```\n\n**One `render()` per player.** Navigating does not call `render()` again — button callbacks feed\nthe runtime's existing present cycle, which re-presents the same screen with the new route. Screen\ncomponents must never call `render()` themselves.\n\n## Documentation\n\n- [navigation](https://bedrock-core.drav.dev/docs/ui/navigation) — the model, quick start, and how\n  it works\n- [`createStackNavigator`](https://bedrock-core.drav.dev/docs/ui/navigation/createStackNavigator) ·\n  [`useNavigation`](https://bedrock-core.drav.dev/docs/ui/navigation/useNavigation) ·\n  [`useRoute`](https://bedrock-core.drav.dev/docs/ui/navigation/useRoute)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}