@appandflow/expo-image-cropping
v0.2.2
Published
A library for cropping image in Expo without any external native plugin
Downloads
16
Readme
@appandflow/expo-image-cropping
A package for cropping image with expo without any plugin
Installation
npm install @appandflow/expo-image-cropping
Usage
import {
ExpoCroppingImageModal,
ExpoCroppingImageModalRef,
} from '@appandflow/expo-image-cropping';
// ...
const modalRef = useRef<ExpoCroppingImageModalRef>(null);
// ...
<ExpoCroppingImageModal
modalRef={modalRef}
imageSrc={originalImage}
onImageSave={(img) => {
console.log('the image save is: ', img);
}}
/>
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library