Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class App extends React.Component {
<ExpoImageManipulator
photo={{ uri }}
isVisible={showModal}
onPictureChoosed={(data) => {
onPictureChosen={(data) => {
this.setState({ uri: data.uri })
}}
onToggleModal={() => this.setState({ showModal: !showModal })}
Expand Down
8 changes: 4 additions & 4 deletions manipulator/ExpoImageManipulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class ExpoImageManipulator extends Component {
render() {
const {
isVisible,
onPictureChoosed,
onPictureChosen,
borderColor = '#a4a4a4',
allowRotate = true,
pinchGestureEnabled,
Expand Down Expand Up @@ -346,7 +346,7 @@ class ExpoImageManipulator extends Component {
<TouchableOpacity onPress={() => this.onFlipImage('horizontal')} style={{marginLeft: 10, width: 32, height: 32, alignItems: 'center', justifyContent: 'center'}}>
<Image source={require('../assets/flip-horizontal.png')} style={{width: 24, height: 24}}></Image>
</TouchableOpacity>
<TouchableOpacity onPress={() => {onPictureChoosed({ uri, base64 }); this.onToggleModal()}} style={{marginLeft: 10, width: 60, height: 32, alignItems: 'center', justifyContent: 'center'}}>
<TouchableOpacity onPress={() => {onPictureChosen({ uri, base64 }); this.onToggleModal()}} style={{marginLeft: 10, width: 60, height: 32, alignItems: 'center', justifyContent: 'center'}}>
<Text style={{fontWeight: '500', color: 'white', fontSize: 18}}>{'DONE'}</Text>
</TouchableOpacity>
</View>
Expand Down Expand Up @@ -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',
Expand All @@ -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,
Expand Down