import React from "react";
import { requireNativeComponent, View, Platform, StyleSheet } from "react-native";
const NativeContextMenu = requireNativeComponent("ContextMenu");
const ContextMenu = props => {
  return /*#__PURE__*/React.createElement(NativeContextMenu, props, props.children, props.preview != null && Platform.OS === 'ios' ? /*#__PURE__*/React.createElement(View, {
    style: styles.preview,
    nativeID: "ContextMenuPreview"
  }, props.preview) : null);
};
const styles = StyleSheet.create({
  preview: {
    position: 'absolute',
    overflow: 'visible',
    backgroundColor: 'transparent'
  }
});
export default ContextMenu;
//# sourceMappingURL=index.js.map