textinputprops

This commit is contained in:
Reinaldo Neto 2023-10-23 19:38:15 -03:00
parent eb33ce3688
commit 780156f7e9
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { LayoutChangeEvent, View, TextInput } from 'react-native'; import { LayoutChangeEvent, View, TextInput, TextInputProps } from 'react-native';
import { PanGestureHandler } from 'react-native-gesture-handler'; import { PanGestureHandler } from 'react-native-gesture-handler';
import Animated, { import Animated, {
SharedValue, SharedValue,
@ -114,11 +114,11 @@ const Seek = ({ currentTime, duration, loaded = false, onChangeTime }: ISeek) =>
if (isTimeChanged.value) { if (isTimeChanged.value) {
return { return {
text: current.value text: current.value
} as any; } as TextInputProps;
} }
return { return {
text: formatTime(duration.value) text: formatTime(duration.value)
} as any; } as TextInputProps;
}, [current, isTimeChanged, duration]); }, [current, isTimeChanged, duration]);
const thumbColor = loaded ? colors.buttonBackgroundPrimaryDefault : colors.tintDisabled; const thumbColor = loaded ? colors.buttonBackgroundPrimaryDefault : colors.tintDisabled;