Skip to content

Commit b8b6726

Browse files
committed
Fix more links to type definition
1 parent 4fa55ce commit b8b6726

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/transitioner.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ _configureTransition(transitionProps, prevTransitionProps) {
7272
```
7373
7474
#### Parameters
75-
- `transitionProps`: the current [NavigationTransitionProps](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L273) created from the current navigation state and props
76-
- `prevTransitionProps`: the previous [NavigationTransitionProps](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L273) created from the previous navigation state and props
75+
- `transitionProps`: the current [NavigationTransitionProps](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js) created from the current navigation state and props
76+
- `prevTransitionProps`: the previous [NavigationTransitionProps](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js) created from the previous navigation state and props
7777
7878
#### Returns
79-
- An object of type [NavigationTransitionSpec](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L316) that will be fed into an Animated timing function as its config
79+
- An object of type [NavigationTransitionSpec](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js) that will be fed into an Animated timing function as its config
8080
8181
8282
### `navigation` prop
@@ -103,7 +103,7 @@ export type NavigationState = {
103103
};
104104
```
105105
106-
For more information about the `NavigationRoute` type, check out its [flow definition](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L32).
106+
For more information about the `NavigationRoute` type, check out its [flow definition](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js).
107107
108108
### `render` function
109109
Invoked from `Transitioner.render()`. This function performs the actual rendering delegated from `Transitioner`. In this function, we can use the information included in the `transitionProps` and `prevTransitionProps` parameters to render scenes, create animations and handle gestures.
@@ -114,7 +114,7 @@ There are a few important properties of the `transitionProps` and `prevTransitio
114114
- `position: NavigationAnimatedValue` - the progressive index of the transitioner's navigation state
115115
- `progress: NavigationAnimatedValue` - the value that represents the progress of the transition when navigation state changes from one to another. Its numeric value will range from 0 to 1.
116116
117-
For the complete list of properties of `NavigationTransitionProps`, check out its [flow definition](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L273).
117+
For the complete list of properties of `NavigationTransitionProps`, check out its [flow definition](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js).
118118
119119
#### Examples
120120
@@ -161,8 +161,8 @@ render: (transitionProps: NavigationTransitionProps, prevTransitionProps: ?Navig
161161
```
162162
163163
#### Parameters
164-
- `transitionProps`: the current [NavigationTransitionProps](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L273) created from the current state and props
165-
- `prevTransitionProps`: the previous [NavigationTransitionProps](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L273) created from the previous state and props
164+
- `transitionProps`: the current [NavigationTransitionProps](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js) created from the current state and props
165+
- `prevTransitionProps`: the previous [NavigationTransitionProps](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js) created from the previous state and props
166166
167167
#### Returns
168168
- A ReactElement, which will be used to render the Transitioner component
@@ -177,8 +177,8 @@ If you return a promise from `onTransitionStart`, the transition animation will
177177
onTransitionStart: (transitionProps: NavigationTransitionProps, prevTransitionProps: ?NavigationTransitionProps) => (Promise | void),
178178
```
179179
#### Parameters
180-
- `transitionProps`: the current [NavigationTransitionProps](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L273) created from the current state and props
181-
- `prevTransitionProps`: the previous [NavigationTransitionProps](https://github.com/react-community/react-navigation/blob/master/src/TypeDefinition.js#L273) created from the previous state and props
180+
- `transitionProps`: the current [NavigationTransitionProps](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js) created from the current state and props
181+
- `prevTransitionProps`: the previous [NavigationTransitionProps](https://github.com/react-navigation/react-navigation/blob/master/flow/react-navigation.js) created from the previous state and props
182182
183183
#### Returns
184184
- `Promise` to delay the start of the transition animation, or none to begin the transition animation immediately.

0 commit comments

Comments
 (0)