feat:add prompt for android and iOS
This commit is contained in:
@@ -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)
|
||||
},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user