Skip to content

AppAndFlow/expo-image-cropping

Repository files navigation

github_readme_banner

App & Flow is a Montreal-based, close-knit team that specializes in React Native/Expo development. Need a hand? Let’s build together! [email protected]

npm (scoped)

A package for cropping image with expo without any plugin. (Still WIP. Wait 1.0.0 for stable release)

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