From 811426f6a4d2e3495d45c0ed1b209f2ea539e26f Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 23 Jul 2021 18:31:10 -0400 Subject: Fix orientation issue --- src/screens/upload/EditMedia.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/screens') 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 = ({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); }} -- cgit v1.2.3-70-g09d2