react-crud-mobile 1.0.670 → 1.0.671

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1328,6 +1328,32 @@ function UIElement(props) {
1328
1328
  scope.updateElement = function () {
1329
1329
  setIndex(++index);
1330
1330
  };
1331
+ scope.prompt = function (args) {
1332
+ var event = args.event;
1333
+ if (event) {
1334
+ var message = 'Você tem certeza que deseja continuar?';
1335
+ var title = 'Atenção';
1336
+ var prompt = event.prompt;
1337
+ if (typeof prompt === 'string') {
1338
+ message = prompt;
1339
+ }
1340
+ if (typeof prompt === 'object') {
1341
+ message = reactCrudUtils.Utils.nvl(prompt.message, message);
1342
+ title = reactCrudUtils.Utils.nvl(prompt.title, title);
1343
+ }
1344
+ reactNative.Alert.alert(title, message, [{
1345
+ text: 'Cancelar',
1346
+ style: 'cancel'
1347
+ }, {
1348
+ text: 'Confirmar',
1349
+ onPress: function onPress() {
1350
+ return scope.execute(args);
1351
+ }
1352
+ }], {
1353
+ cancelable: false
1354
+ });
1355
+ }
1356
+ };
1331
1357
  var Custom = function Custom() {
1332
1358
  var c = original.custom;
1333
1359
  if (c) {