diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-23 18:57:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 18:57:04 -0400 |
commit | 841693de4d72fc50079aa1b24fc13f27d02decc4 (patch) | |
tree | 3e1465a0e195c3b9676513606089a3dd141b0176 /src/screens/upload/EditMedia.tsx | |
parent | e39fcbd9e35f6a5e36afe248e24bea0dd3859202 (diff) | |
parent | c3febe151a34456cecbe84ffaac6eeea56254005 (diff) |
Merge pull request #519 from IvanIFChen/tma994-bugfix-camera-screen-preview
[TMA-994] [BUGFIX] Camera Screen Preview Fix
Diffstat (limited to 'src/screens/upload/EditMedia.tsx')
-rw-r--r-- | src/screens/upload/EditMedia.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/screens/upload/EditMedia.tsx b/src/screens/upload/EditMedia.tsx index 07d20a7b..338634b8 100644 --- a/src/screens/upload/EditMedia.tsx +++ b/src/screens/upload/EditMedia.tsx @@ -370,11 +370,7 @@ export const EditMedia: React.FC<EditMediaProps> = ({route, navigation}) => { height: SCREEN_WIDTH / aspectRatio, }, ]} - handleLoad={( - response: {width: number; height: number}, - duration: number, - ) => { - const {width, height} = response; + handleLoad={(width: number, height: number, duration: number) => { setVideoDuration(duration); setOrigDimensions([width, height]); setAspectRatio(width / height); |