Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 622 Bytes

routing.md

File metadata and controls

19 lines (13 loc) · 622 Bytes

Routing

All app routes are specified in routes.tsx.

RouterLink Component

The RouterLink component wraps Touchable and enables navigation to a specific route when pressed. It also supports prefetching the route as it comes into view.

<RouterLink to="/my-route" navigationProps={{ filters: ["my-filter"]}} onPress={onPress}>
  {children}
</RouterLink>

Alternatively, navigate can be used to programmatically navigate to a given route.