@appandflow/expo-image-cropping

v0.2.2
A library for cropping image in Expo without any external native plugin
react-native ios android

@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

npm i @appandflow/expo-image-cropping

Metadata

  • MIT
  • >= 16.14.0
  • Emanuel Quimper
  • released 6/7/2023

Downloads