feat: enhance plugin navigator,add popSelf and popToRoot
This commit is contained in:
@@ -3120,6 +3120,14 @@ function navigator(context) {
|
||||
if (animated === void 0) { animated = true; }
|
||||
return context.callNative(moduleName, 'pop', { animated: animated });
|
||||
},
|
||||
popSelf: function (animated) {
|
||||
if (animated === void 0) { animated = true; }
|
||||
return context.callNative(moduleName, 'popSelf', { animated: animated });
|
||||
},
|
||||
popToRoot: function (animated) {
|
||||
if (animated === void 0) { animated = true; }
|
||||
return context.callNative(moduleName, 'popToRoot', { animated: animated });
|
||||
},
|
||||
openUrl: function (url) {
|
||||
return context.callNative(moduleName, "openUrl", url);
|
||||
},
|
||||
|
@@ -2419,6 +2419,12 @@ function navigator(context) {
|
||||
pop: (animated = true) => {
|
||||
return context.callNative(moduleName, 'pop', { animated });
|
||||
},
|
||||
popSelf: (animated = true) => {
|
||||
return context.callNative(moduleName, 'popSelf', { animated });
|
||||
},
|
||||
popToRoot: (animated = true) => {
|
||||
return context.callNative(moduleName, 'popToRoot', { animated });
|
||||
},
|
||||
openUrl: (url) => {
|
||||
return context.callNative(moduleName, "openUrl", url);
|
||||
},
|
||||
|
@@ -3940,6 +3940,12 @@ function navigator(context) {
|
||||
pop: (animated = true) => {
|
||||
return context.callNative(moduleName, 'pop', { animated });
|
||||
},
|
||||
popSelf: (animated = true) => {
|
||||
return context.callNative(moduleName, 'popSelf', { animated });
|
||||
},
|
||||
popToRoot: (animated = true) => {
|
||||
return context.callNative(moduleName, 'popToRoot', { animated });
|
||||
},
|
||||
openUrl: (url) => {
|
||||
return context.callNative(moduleName, "openUrl", url);
|
||||
},
|
||||
|
Reference in New Issue
Block a user