feat:move navigator to another class for iOS

This commit is contained in:
pengfei.zhou
2019-11-25 10:50:27 +08:00
parent f750eb6cae
commit 844d44a6f0
8 changed files with 48 additions and 20 deletions

View File

@@ -170,13 +170,13 @@ export function storage(context: BridgeContext) {
export function navigator(context: BridgeContext) {
return {
push: (scheme: string, alias: string) => {
push: (scheme: string, alias: string, animated = true) => {
return context.navigator.push({
scheme, alias
scheme, alias, animated
})
},
pop: () => {
return context.navigator.pop()
pop: (animated = true) => {
return context.navigator.pop({ animated })
},
}
}