mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
Fix NavigationEventPayload.lastState type (#3664)
Should be nullable, since it is initially called as `null` in `src/createNavigationContainer.js` (and in `react-navigation-redux-helpers`, where it is causing a Flow error)
This commit is contained in:
@@ -459,7 +459,7 @@ declare module 'react-navigation' {
|
|||||||
type: EventType,
|
type: EventType,
|
||||||
action: NavigationAction,
|
action: NavigationAction,
|
||||||
state: NavigationState,
|
state: NavigationState,
|
||||||
lastState: NavigationState,
|
lastState: ?NavigationState,
|
||||||
};
|
};
|
||||||
|
|
||||||
declare export type NavigationEventCallback = (
|
declare export type NavigationEventCallback = (
|
||||||
|
|||||||
Reference in New Issue
Block a user