Cropping made easy!. Latest version: 1.1.4, last published: 2 years ago. Start using expo-react-native-easy-crop in your project by running `npm i expo-react-native-easy-crop`. There are no other projects in the npm registry using expo-react-native-easy-
or npm install react-easy-crop --save Basic usage The Cropper is styled withposition: absoluteto take the full space of its parent. Thus, you need to wrap it with an element that usesposition: relativeor the Cropper will fill the whole page. import{ useState, useCallback }from'react'imp...
npm install react-easy-crop --save # 或者 yarn add react-easy-crop 然后在你的React组件中导入Cropper组件: javascript import Cropper from 'react-easy-crop'; 2. 设置裁剪框尺寸 react-easy-crop组件的cropSize属性允许你设置裁剪框的初始尺寸。这个属性接受一个对象,其中包含width和height属性,分别代表裁...
npm install react-easy-crop --save Basic usage The Cropper is styled with position: absolute to take the full space of its parent. Thus, you need to wrap it with an element that uses position: relative or the Cropper will fill the whole page. import { useState, useCallback } from 're...
npm install react-easy-crop --save Basic usage The Cropper is styled with position: absolute to take the full space of its parent. Thus, you need to wrap it with an element that uses position: relative or the Cropper will fill the whole page. import { useState, useCallback } from 're...
npm install react-easy-crop --save Basic usage The Cropper is styled withposition: absoluteto take the full space of its parent. Thus, you need to wrap it with an element that usesposition: relativeor the Cropper will fill the whole page. ...