You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `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
77
77
78
78
#### 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
80
80
81
81
82
82
### `navigation` prop
@@ -103,7 +103,7 @@ export type NavigationState = {
103
103
};
104
104
```
105
105
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).
107
107
108
108
### `render` function
109
109
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
114
114
- `position: NavigationAnimatedValue` - the progressive index of the transitioner's navigation state
115
115
- `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.
116
116
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).
- `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
166
166
167
167
#### Returns
168
168
- 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
- `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
182
182
183
183
#### Returns
184
184
- `Promise` to delay the start of the transition animation, or none to begin the transition animation immediately.
0 commit comments