Skip to content

aytaceminoglu/react-native-crop-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>
...

About

A crop view component for React Native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published