How to use the react-image-crop.default function in react-image-crop

To help you get started, we’ve selected a few react-image-crop examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webkom-co / airframe-next / features / CropImage / ExampleProvider.js View on Github external
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
const ReactCrop = typeof window !== 'undefined' ? require('react-image-crop').default : null;

import {
    Row,
    Col,
    Button
} from './../../components';

const _document = typeof document !== 'undefined' ? document : null;
const _window = typeof window !== 'undefined' ? window : null;

const initialPosition = {
    x: 10,
    y: 10,
    width: 80,
    height: 80,
}

react-image-crop

A responsive image cropping tool for React

ISC
Latest version published 2 months ago

Package Health Score

83 / 100
Full package analysis