add navigator demo for Android and single activity multi fragment

This commit is contained in:
pengfei.zhou
2019-11-23 16:23:08 +08:00
parent 920ca8d41e
commit 885d168d33
13 changed files with 199 additions and 17 deletions

View File

@@ -166,4 +166,17 @@ export function storage(context: BridgeContext) {
return context.storage.clear({ zone })
},
}
}
export function navigator(context: BridgeContext) {
return {
push: (scheme: string, alias: string) => {
return context.navigator.push({
scheme, alias
})
},
pop: () => {
return context.navigator.pop()
},
}
}