Skip to content

Commit 2bb7fd5

Browse files
committed
Update broken links
1 parent d8efd64 commit 2bb7fd5

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

docs/custom-navigator-overview.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ Under the hood, navigators are plain React components.
1212

1313
`react-navigation` includes the following functions to help you create navigators:
1414

15-
- [StackNavigator](/docs/navigators/stack) - Renders one screen at a time and provides transitions between screens. When a new screen is opened it is placed on top of the stack.
16-
- [TabNavigator](/docs/navigators/tab) - Renders a tab bar that lets the user switch between several screens
17-
- [DrawerNavigator](/docs/navigators/drawer) - Provides a drawer that slides in from the left of the screen
15+
- [StackNavigator](/docs/stack-navigator) - Renders one screen at a time and provides transitions between screens. When a new screen is opened it is placed on top of the stack.
16+
- [TabNavigator](/docs/tab-navigator) - Renders a tab bar that lets the user switch between several screens
17+
- [DrawerNavigator](/docs/drawer-navigator) - Provides a drawer that slides in from the left of the screen
1818

1919
## Rendering screens with Navigators
2020

2121
The navigators render application screens which are just React components.
2222

2323
To learn how to create screens, read about:
24-
- [Screen `navigation` prop](/docs/navigators/navigation-prop) to allow the screen to dispatch navigation actions, such as opening another screen
25-
- [Screen `navigationOptions`](/docs/navigators/navigation-options) to customize how the screen gets presented by the navigator (e.g. header title, tab label)
24+
- [Screen `navigation` prop](/docs/navigation-prop) to allow the screen to dispatch navigation actions, such as opening another screen
25+
- Screen `navigationOptions` to customize how the screen gets presented by the navigator (e.g. [header title](/docs/stack-navigator.html#navigationoptions-used-by-stacknavigator), tab label)
2626

2727
### Calling Navigate on Top Level Component
2828

docs/custom-navigators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Custom navigators
44
sidebar_label: Custom navigators
55
---
66

7-
A navigator is any React component that has a [router](/docs/routers/) on it. Here is a basic one, which uses the [router's API](/docs/routers/api) to get the active component to render:
7+
A navigator is any React component that has a [router](https://github.com/react-navigation/react-navigation/blob/master/src/routers/StackRouter.js) on it. Here is a basic one, which uses the [router's API](/docs/routers) to get the active component to render:
88

99
```js
1010
class MyNavigator extends React.Component {
@@ -74,7 +74,7 @@ To help developers implement custom navigators, the following utilities are prov
7474

7575
### `createNavigator`
7676

77-
This utility combines a [router](/docs/routers/) and a [navigation view](/docs/views/) together in a standard way:
77+
This utility combines a [router](/docs/routers/) and a [navigation view](/docs/navigation-views/) together in a standard way:
7878

7979
```js
8080
const MyApp = createNavigator(MyRouter)(MyView);

docs/navigation-views.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Navigation views
44
sidebar_label: Navigation views
55
---
66

7-
Navigation views are presentation components that take a [`router`](/docs/api/routers) and a [`navigation`](/docs/navigators/navigation-prop) prop, and can display several screens, as specified by the `navigation.state`.
7+
Navigation views are presentation components that take a [`router`](/docs/routers) and a [`navigation`](/docs/navigation-prop) prop, and can display several screens, as specified by the `navigation.state`.
88

99
Navigation views are controlled React components that can present the current navigation state. They manage switching of screens, animations and gestures. They also present persistent navigation views such as tab bars and headers.
1010

@@ -17,6 +17,6 @@ Navigation views are controlled React components that can present the current na
1717
- [Drawer](https://github.com/react-community/react-navigation/blob/master/src/views/Drawer/DrawerView.js) - A view with a drawer that slides from the left
1818

1919

20-
## [Transitioner](/docs/views/transitioner)
20+
## [Transitioner](/docs/transitioner)
2121

22-
`Transitioner` manages the animations during the transition and can be used to build fully custom navigation views. It is used inside the `CardStack` view. [Learn more about Transitioner here.](/docs/views/transitioner)
22+
`Transitioner` manages the animations during the transition and can be used to build fully custom navigation views. It is used inside the `CardStack` view. [Learn more about Transitioner here.](/docs/transitioner)

docs/routers.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,26 @@ Routers define a component's navigation state, and they allow the developer to d
1010

1111
`react-navigation` ships with a few standard routers:
1212

13-
- [StackRouter](/docs/routers/stack)
14-
- [TabRouter](/docs/routers/tab)
13+
- [StackRouter](https://github.com/react-navigation/react-navigation/blob/master/src/routers/StackRouter.js)
14+
- [TabRouter](https://github.com/react-navigation/react-navigation/blob/master/src/routers/TabRouter.js)
1515

1616

1717
## Using Routers
1818

19-
To make a navigator manually, put a static `router` on a component. (To quickly make a navigator with a built-in component, it may be easier to use a [built-in navigator](/docs/navigators) instead)
19+
To make a navigator manually, put a static `router` on a component.
2020

2121
```js
2222
class MyNavigator extends React.Component {
23-
static router = StackRouter(routes, config);
24-
...
23+
static router = StackRouter(routes, config);
24+
...
2525
}
2626
```
2727

2828
Now you can use this component as a `screen` in another navigator, and the navigation logic for `MyNavigator` will be defined by this `StackRouter`.
2929

30-
3130
## Customizing Routers
3231

33-
See the [Custom Router API spec](/docs/routers/api) to learn about the API of `StackRouter` and `TabRouter`. You can override the router functions as you see fit:
32+
See the [Custom Router API spec](/docs/custom-routers) to learn about the API of `StackRouter` and `TabRouter`. You can override the router functions as you see fit:
3433

3534
### Custom Navigation Actions
3635

0 commit comments

Comments
 (0)