feat:add prompt for android and iOS

This commit is contained in:
pengfei.zhou
2019-11-20 21:04:27 +08:00
parent 2290c8cd48
commit ec854ebe71
5 changed files with 172 additions and 3 deletions

View File

@@ -47,5 +47,15 @@ export function modal(context: BridgeContext) {
return context.modal.confirm(arg)
}
},
prompt: (arg: {
title?: string,
msg?: string,
okLabel?: string,
cancelLabel?: string,
text?: string,
defaultText?: string,
}) => {
return context.modal.prompt(arg)
},
}
}