From c650261aca0c32b8826e202df01b42d6e9a46cfb Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 16 Jul 2021 17:39:21 -0400 Subject: Undo api, Update volume icon --- src/assets/icons/volume-on.svg | 9 --------- src/assets/images/volume-on.png | Bin 0 -> 5479 bytes src/components/comments/ZoomInCropper.tsx | 18 ++++++++++++------ src/constants/api.ts | 2 +- 4 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 src/assets/icons/volume-on.svg create mode 100644 src/assets/images/volume-on.png (limited to 'src') diff --git a/src/assets/icons/volume-on.svg b/src/assets/icons/volume-on.svg deleted file mode 100644 index c3ed1693..00000000 --- a/src/assets/icons/volume-on.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/src/assets/images/volume-on.png b/src/assets/images/volume-on.png new file mode 100644 index 00000000..7cbbaa84 Binary files /dev/null and b/src/assets/images/volume-on.png differ 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; type ZoomInCropperNavigationProps = StackNavigationProp< @@ -350,7 +349,10 @@ export const ZoomInCropper: React.FC = ({ Trim - + Volume )} @@ -423,4 +425,8 @@ const styles = StyleSheet.create({ backgroundColor: 'black', flex: 1, }, + volumnIcon: { + width: 25, + height: 25, + }, }); diff --git a/src/constants/api.ts b/src/constants/api.ts index ed68f14f..6dab1153 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -1,7 +1,7 @@ /* eslint-disable */ // Dev -const BASE_URL: string = 'http://192.168.0.49:8000/'; +const BASE_URL: string = 'http://127.0.0.1:8000/'; export const STREAM_CHAT_API = 'g2hvnyqx9cmv'; // Prod -- cgit v1.2.3-70-g09d2