'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});

exports["default"] = function () {
    var title = arguments.length <= 0 ? undefined : arguments[0];
    var content = arguments.length <= 1 ? undefined : arguments[1];
    var actions = (arguments.length <= 2 ? undefined : arguments[2]) || [{ text: '确定' }];
    _rnTopview2["default"].set(_react2["default"].createElement(_AlertContainer2["default"], { title: title, content: content, actions: actions, onAnimationEnd: function onAnimationEnd(visible) {
            if (!visible) {
                _rnTopview2["default"].remove();
            }
        } }));
};

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _rnTopview = require('rn-topview');

var _rnTopview2 = _interopRequireDefault(_rnTopview);

var _AlertContainer = require('./AlertContainer');

var _AlertContainer2 = _interopRequireDefault(_AlertContainer);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

module.exports = exports['default'];