1.0.3 • Published 7 months ago
react-native-crop-viewer v1.0.3
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>
...