UNPKG

expo-dynamic-image-crop

Version:

Dynamic image cropping component for Expo/React Native with free-form and fixed aspect ratio support

17 lines (16 loc) 991 B
// Main export file for expo-dynamic-image-crop export { ImageEditor, ImageEditorView } from "./ImageEditor"; // Optional: Export individual components if users want to use them separately export { ControlBar } from "./ControlBar"; export { EditingWindow } from "./EditingWindow"; export { ImageCropOverlay } from "./ImageCropOverlay"; export { Processing } from "./Processing"; // Export hooks and context for advanced usage export { usePerformCrop } from "./hooks/usePerformCrop"; export { EditorContext } from "./context/editor"; // Advanced: Editor State Hooks // These hooks provide safe, read-only access to editor state // Use these for building custom UI or reacting to editor state changes export { useEditorProcessing, useEditorReady, useEditorImageData, useEditorMode, useEditorCropInfo, } from "./hooks/useEditorState"; // Note: The internal Zustand store (useEditorStore) is intentionally not exported // to prevent misuse and ensure API stability. Use the hooks above instead.