|
@@ -4,7 +4,7 @@ import { Icon, Slider } from 'react-native-elements';
|
|
|
import C from 'rn-class';
|
|
|
|
|
|
export default props => {
|
|
|
- const { Pages } = props;
|
|
|
+ const { Pages, currentPlayerValue, setCurrentPlayerValue} = props;
|
|
|
const [curPlayerValue, setCurPlayerValue] = useState(0);
|
|
|
const [isPlay, setPlay] = useState(false);
|
|
|
const onSetPlay = () => {
|
|
@@ -40,11 +40,11 @@ export default props => {
|
|
|
trackStyle={{height:2}}
|
|
|
thumbTintColor="#333"
|
|
|
thumbStyle={{ width: 10, height: 5 }}
|
|
|
- value={curPlayerValue}
|
|
|
- onValueChange={value => setCurPlayerValue(value)}
|
|
|
+ value={currentPlayerValue}
|
|
|
+ onValueChange={value => setCurrentPlayerValue(value)}
|
|
|
/>
|
|
|
<C.View cls="w95 jc-sb flx-row">
|
|
|
- <C.Text>Time : {curPlayerValue}</C.Text>
|
|
|
+ <C.Text>Time : {currentPlayerValue}</C.Text>
|
|
|
<C.Text>{`2:50`}</C.Text>
|
|
|
</C.View>
|
|
|
</C.View>
|