diff --git a/README.md b/README.md index 86cbd0cd..ed1d45bd 100644 --- a/README.md +++ b/README.md @@ -83,8 +83,4 @@ export default class App extends React.Component { ## Features * Crop and rotate image with `Expo.ImageManipulator` -## Kown Issues - ## If you have some problem open a issue - -## TO DO diff --git a/example/App.js b/example/App.js index e34feed7..9c15a2cc 100644 --- a/example/App.js +++ b/example/App.js @@ -66,7 +66,7 @@ export default class App extends React.Component { { + onPictureChosen={(data) => { this.setState({ uri: data.uri }) }} onToggleModal={() => this.setState({ showModal: !showModal })} diff --git a/manipulator/ExpoImageManipulator.js b/manipulator/ExpoImageManipulator.js index 8e490038..016ee438 100644 --- a/manipulator/ExpoImageManipulator.js +++ b/manipulator/ExpoImageManipulator.js @@ -274,7 +274,7 @@ class ExpoImageManipulator extends Component { render() { const { isVisible, - onPictureChoosed, + onPictureChosen, borderColor = '#a4a4a4', allowRotate = true, pinchGestureEnabled, @@ -346,7 +346,7 @@ class ExpoImageManipulator extends Component { this.onFlipImage('horizontal')} style={{marginLeft: 10, width: 32, height: 32, alignItems: 'center', justifyContent: 'center'}}> - {onPictureChoosed({ uri, base64 }); this.onToggleModal()}} style={{marginLeft: 10, width: 60, height: 32, alignItems: 'center', justifyContent: 'center'}}> + {onPictureChosen({ uri, base64 }); this.onToggleModal()}} style={{marginLeft: 10, width: 60, height: 32, alignItems: 'center', justifyContent: 'center'}}> {'DONE'} @@ -410,7 +410,7 @@ class ExpoImageManipulator extends Component { export default ExpoImageManipulator ExpoImageManipulator.defaultProps = { - onPictureChoosed: ({ uri, base64 }) => console.log('URI:', uri, base64), + onPictureChosen: ({ uri, base64 }) => console.log('URI:', uri, base64), btnTexts: { crop: 'Crop', rotate: 'Rotate', @@ -428,7 +428,7 @@ ExpoImageManipulator.defaultProps = { ExpoImageManipulator.propTypes = { isVisible: PropTypes.bool.isRequired, - onPictureChoosed: PropTypes.func, + onPictureChosen: PropTypes.func, btnTexts: PropTypes.object, saveOptions: PropTypes.object, photo: PropTypes.object.isRequired,