diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-16 17:39:21 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-16 17:39:21 -0400 |
commit | c650261aca0c32b8826e202df01b42d6e9a46cfb (patch) | |
tree | 370305b56fa03e1b41ef5cfc44f5f7cc9f0f433e /src/components/comments/ZoomInCropper.tsx | |
parent | 0e281251da135f58b71c6b279f2efd317f63a542 (diff) |
Undo api, Update volume icon
Diffstat (limited to 'src/components/comments/ZoomInCropper.tsx')
-rw-r--r-- | src/components/comments/ZoomInCropper.tsx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/components/comments/ZoomInCropper.tsx b/src/components/comments/ZoomInCropper.tsx index 061964a8..88f161e5 100644 --- a/src/components/comments/ZoomInCropper.tsx +++ b/src/components/comments/ZoomInCropper.tsx @@ -1,3 +1,4 @@ +import ReactNativeZoomableView from '@dudigital/react-native-zoomable-view/src/ReactNativeZoomableView'; import {RouteProp} from '@react-navigation/core'; import {StackNavigationProp} from '@react-navigation/stack'; import React, {useEffect, useRef, useState} from 'react'; @@ -5,20 +6,18 @@ import {Image, StyleSheet, Text, TouchableOpacity, View} from 'react-native'; import {normalize} from 'react-native-elements'; import ImageZoom, {IOnMove} from 'react-native-image-pan-zoom'; import PhotoManipulator from 'react-native-photo-manipulator'; +import TrimIcon from '../../assets/icons/trim.svg'; import CloseIcon from '../../assets/ionicons/close-outline.svg'; import {MainStackParams} from '../../routes'; import { cropVideo, - trimVideo, HeaderHeight, SCREEN_HEIGHT, SCREEN_WIDTH, + trimVideo, } from '../../utils'; -import {TaggSquareButton, TaggLoadingIndicator} from '../common'; -import ReactNativeZoomableView from '@dudigital/react-native-zoomable-view/src/ReactNativeZoomableView'; +import {TaggLoadingIndicator, TaggSquareButton} from '../common'; import {TrimmerPlayer} from '../moments/trimmer'; -import TrimIcon from '../../assets/icons/trim.svg'; -import VolumeOnIcon from '../../assets/icons/volume-on.svg'; type ZoomInCropperRouteProps = RouteProp<MainStackParams, 'ZoomInCropper'>; type ZoomInCropperNavigationProps = StackNavigationProp< @@ -350,7 +349,10 @@ export const ZoomInCropper: React.FC<ZoomInCropperProps> = ({ <View style={styles.iconCarrier}> <TrimIcon /> <Text style={styles.iconText}>Trim</Text> - <VolumeOnIcon /> + <Image + style={styles.volumnIcon} + source={require('../../assets/images/volume-on.png')} + /> <Text style={styles.iconText}>Volume</Text> </View> )} @@ -423,4 +425,8 @@ const styles = StyleSheet.create({ backgroundColor: 'black', flex: 1, }, + volumnIcon: { + width: 25, + height: 25, + }, }); |