"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactNative = require("react-native");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const NativeContextMenu = (0, _reactNative.requireNativeComponent)("ContextMenu");
const ContextMenu = props => {
  return /*#__PURE__*/_react.default.createElement(NativeContextMenu, props, props.children, props.preview != null && _reactNative.Platform.OS === 'ios' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
    style: styles.preview,
    nativeID: "ContextMenuPreview"
  }, props.preview) : null);
};
const styles = _reactNative.StyleSheet.create({
  preview: {
    position: 'absolute',
    overflow: 'visible',
    backgroundColor: 'transparent'
  }
});
var _default = ContextMenu;
exports.default = _default;
//# sourceMappingURL=index.js.map