"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const react_native_1 = require("react-native");
const react_native_haptic_feedback_1 = tslib_1.__importDefault(require("react-native-haptic-feedback"));
const CommonTouchable = ({ onPress = () => { }, haptic = 'impactLight', disabled = false, accessibility, accessibilityLabel, testID, id, ...rest }) => {
    const onBasicPress = (event) => {
        onPress(event);
        try {
            react_native_haptic_feedback_1.default.trigger(haptic);
        }
        catch (error) { }
    };
    return (<react_native_1.TouchableOpacity {...rest} accessibilityLabel={accessibilityLabel || accessibility} testID={testID || id || accessibility} disabled={disabled} onPress={onBasicPress}/>);
};
exports.default = CommonTouchable;
//# sourceMappingURL=index.js.map