mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-26 23:31:28 +08:00
fix: use 1 as default in compatibility pop action
This commit is contained in:
committed by
Satyajit Sahoo
parent
de5d985f3b
commit
44081172d4
@@ -57,7 +57,7 @@ export function push(routeName: string, params?: object, action?: never) {
|
||||
});
|
||||
}
|
||||
|
||||
export function pop(n: number) {
|
||||
export function pop(n: number = 1) {
|
||||
return StackActions.pop(typeof n === 'number' ? { n } : n);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user