Skip to content

Commit 5bd12e5

Browse files
committed
add newline at the end of file
1 parent f4d67f0 commit 5bd12e5

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

index.js

+14-13
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ export default class PhotoUpload extends React.Component {
4848
}
4949

5050
openImagePicker = () => {
51-
this.setState({ buttonDisabled: true })
51+
this.setState({buttonDisabled: true})
5252
if (this.props.onStart) this.props.onStart()
5353

5454
// get image from image picker
5555
ImagePicker.showImagePicker(this.options, async response => {
56-
this.setState({ buttonDisabled: false })
57-
58-
let rotation = 0
59-
const { originalRotation } = response
56+
this.setState({buttonDisabled: false})
6057

58+
let rotation = 0
59+
const {originalRotation} = response
60+
6161

6262
if (this.props.onResponse) this.props.onResponse(response)
6363

@@ -76,16 +76,16 @@ export default class PhotoUpload extends React.Component {
7676
}
7777

7878
let { maxHeight, maxWidth, quality, format } = this.state
79-
79+
8080
//Determining rotation param
81-
if (originalRotation === 90) {
82-
rotation = 90
83-
} else if (originalRotation === 180) {
81+
if ( originalRotation === 90) {
82+
rotation = 90
83+
} else if (originalRotation === 180) {
8484
//For a few images rotation is 180.
85-
rotation = -180
86-
} else if (originalRotation === 270) {
85+
rotation = -180
86+
} else if ( originalRotation === 270 ) {
8787
//When taking images with the front camera (selfie), the rotation is 270.
88-
rotation = -90
88+
rotation = -90
8989
}
9090
// resize image
9191
const resizedImageUri = await ImageResizer.createResizedImage(
@@ -141,4 +141,5 @@ export default class PhotoUpload extends React.Component {
141141
</View>
142142
)
143143
}
144-
}
144+
}
145+

0 commit comments

Comments
 (0)