textinputprops
This commit is contained in:
parent
eb33ce3688
commit
780156f7e9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue