Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.19 KB

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