An image view component that corrects the distorted image with its corner points.
yarn add react-native-perspective-correction-image-view
or
npm install react-native-perspective-correction-image-view
Please take a look at the example app.
<PerspectiveCorrectionImage
source={require('./sample.png')}
sourceCorners={[114, 80, 324, 46, 77, 203, 306, 252]}
sourceWidth={400}
sourceHeight={300}
width={200}
height={150}
backgroundColor='black'
ref={perspectiveCorrectionImageRef}
/>
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT