"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pressable = void 0;
var react_1 = __importDefault(require("react"));
var react_native_1 = require("react-native");
var androidRippleConfig = { color: '#eee' };
exports.Pressable = function (props) {
    var _a = props, children = _a.children, ripple = _a.ripple;
    return (react_1.default.createElement(react_native_1.Pressable, __assign({ delayLongPress: 200, android_ripple: ripple ? { color: '#eee', borderless: false } : {} }, props, { onPress: function (ev) {
            react_native_1.Vibration.vibrate(25);
            if (props.onPress)
                props.onPress(ev);
        }, onLongPress: function (ev) {
            react_native_1.Vibration.vibrate(25);
            if (props.onLongPress)
                props.onLongPress(ev);
        } }), typeof children === 'function' ? function (_a) {
        var pressed = _a.pressed;
        return children({ pressed: pressed });
    } : children));
};
//# sourceMappingURL=Pressable.js.map