aboutsummaryrefslogtreecommitdiff
path: root/src/screens/upload/EditMedia.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/upload/EditMedia.tsx')
-rw-r--r--src/screens/upload/EditMedia.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screens/upload/EditMedia.tsx b/src/screens/upload/EditMedia.tsx
index f8e7692d..10f5f2fb 100644
--- a/src/screens/upload/EditMedia.tsx
+++ b/src/screens/upload/EditMedia.tsx
@@ -338,8 +338,7 @@ export const EditMedia: React.FC<EditMediaProps> = ({route, navigation}) => {
height: SCREEN_WIDTH / aspectRatio,
},
]}
- handleLoad={(response: {width: number; height: number}) => {
- const {width, height} = response;
+ handleLoad={(width: number, height: number) => {
setOrigDimensions([width, height]);
setAspectRatio(width / height);
}}