From 7bb36349c8e843d9149731883dc7c7fd810323bb Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Wed, 23 Mar 2022 10:49:45 -0400 Subject: [PATCH] [FIX] Audio thumb's size (#3945) * update: Audio component --- app/containers/message/Audio.tsx | 13 ++----------- storybook/stories/__snapshots__/Message.storyshot | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/app/containers/message/Audio.tsx b/app/containers/message/Audio.tsx index 5503c370a9..d364c0d387 100644 --- a/app/containers/message/Audio.tsx +++ b/app/containers/message/Audio.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Easing, StyleProp, StyleSheet, Text, TextStyle, View } from 'react-native'; +import { StyleProp, StyleSheet, Text, TextStyle, View } from 'react-native'; import { Audio } from 'expo-av'; import Slider from '@react-native-community/slider'; import moment from 'moment'; @@ -84,12 +84,6 @@ const formatTime = (seconds: number) => moment.utc(seconds * 1000).format('mm:ss const BUTTON_HIT_SLOP = { top: 12, right: 12, bottom: 12, left: 12 }; -const sliderAnimationConfig = { - duration: 250, - easing: Easing.linear, - delay: 0 -}; - const Button = React.memo(({ loading, paused, onPress, disabled, theme }: IButton) => (