Vue NativeVue Native
Guide
Components
Composables
Navigation
  • iOS
  • Android
GitHub
Guide
Components
Composables
Navigation
  • iOS
  • Android
GitHub
  • Navigation
  • Stack Navigation
  • Passing Params

Passing Params

Passing params on navigation

router.push('profile', { userId: 123, username: 'alice' })

Reading params in the destination screen

<script setup>
import { useRoute } from '@thelacanians/vue-native-navigation'

const route = useRoute()
const userId = route.params.userId     // 123
const username = route.params.username // 'alice'
</script>

useRoute() is reactive — if params change (e.g. via router.replace), the component re-renders.

Typed params (TypeScript)

You can type your params with a generic:

const route = useRoute<{ userId: number; username: string }>()

Passing complex objects

Params can be any serializable value:

router.push('checkout', {
  items: [{ id: 1, qty: 2 }, { id: 3, qty: 1 }],
  total: 49.99,
})
Edit this page
Last Updated: 2/23/26, 5:58 AM
Contributors: Abdul Hamid, Claude Sonnet 4.6, Claude Opus 4.6
Prev
Stack Navigation