Closed retyui closed 10 months ago
This PR adds breaking changes!
1) Install:
npx react-native init testEditor cd testEditor yarn add retyui/react-native-image-editor#android-contain-resize-mode
2) Paste code from example/App.js
3) Extends crop data
const cropData: ImageCropData = { offset: { x: this.props.image.width * offsetRatioX, y: this.props.image.height * offsetRatioY, }, size: { width: this.props.image.width * sizeRatioX, height: this.props.image.height * sizeRatioY, }, + resizeMode: 'contain', + displaySize: { + width: 2000, + height: 1000, + }, };
README.md
CHANGELOG.md
example/App.js
I apologize but I'm not familiar with this package.
This PR adds breaking changes!
Test Plan
1) Install:
2) Paste code from example/App.js
3) Extends crop data
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md
CHANGELOG.md
example/App.js
)