Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 529 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 529 Bytes

React Native CropViewer

Installation

npm install react-native-crop-viewer

or

yarn add react-native-crop-viewer

Basic Usage

import CropViewer from "react-native-crop-viewer"

...
  <CropViewer
    highlightArea={true}
    areaStyle={{ borderColor: "white", borderWidth: 4 }}
    handleStyle={{ backgroundColor: "red", borderRadius: 50 }}
    onCropChange={(cropArea) => console.log(cropArea)}
  >
    <Image source={{ uri: photo?.path }} style={{ flex: 1 }} />
  </CropViewer>
...