|
@@ -163,7 +163,7 @@ export default props => {
|
|
|
const destination = tabY - minHeight - statusBarHeight;
|
|
|
const [currentPlayerValue, setCurrentPlayerValue] = useState(0);
|
|
|
const [isPlay, setPlay] = useState(false);
|
|
|
-
|
|
|
+ const {playerData} = props.Pages;
|
|
|
const {
|
|
|
onGestureEvent,
|
|
|
translateY,
|
|
@@ -301,11 +301,11 @@ export default props => {
|
|
|
}, []);
|
|
|
|
|
|
useEffect(() => {
|
|
|
-
|
|
|
+ playerDispatch({type:'currentTime', setCurrentTime: 0});
|
|
|
return () => {
|
|
|
playerDispatch({type:'currentTime', setCurrentTime: 0});
|
|
|
};
|
|
|
- },[]);
|
|
|
+ },[playerData.soundURI]);
|
|
|
|
|
|
const slideUp = () => {};
|
|
|
|
|
@@ -430,7 +430,7 @@ export default props => {
|
|
|
source={props.Pages.img}
|
|
|
/>
|
|
|
<Video
|
|
|
- source={{uri:uri}}
|
|
|
+ source={{uri:playerData.soundURI}}
|
|
|
style={StyleSheet.absoluteFill}
|
|
|
ref={player}
|
|
|
//rate={this.state.rate}
|
|
@@ -485,15 +485,15 @@ export default props => {
|
|
|
>
|
|
|
<C.View cls="w90 h100 bgc-rgba-black-0_5">
|
|
|
<ScrollView style={{ flex: 1, marginTop: '10%' }}>
|
|
|
- <C.Text cls="flx1 ta-c">{props.Pages.subtitle}</C.Text>
|
|
|
+ <C.Text cls="flx1 fw-b ta-c">{playerData.title}</C.Text>
|
|
|
<C.View cls="flx2 ph5 mt5">
|
|
|
- <C.Text cls="fw-b">{props.Pages.subtitle}</C.Text>
|
|
|
- <C.Text cls="mt2">{props.Pages.contens}</C.Text>
|
|
|
+ <C.Text cls="fw-b">{playerData.subtitle}</C.Text>
|
|
|
+ <C.Text cls="mt2">{playerData.contents}</C.Text>
|
|
|
<C.Text cls="mt3" numberOfLines={1}>
|
|
|
- by {props.Pages.subtitle.replace(/\r\n|\n|\r/gm, ' ')}
|
|
|
+ by {playerData.author.replace(/\r\n|\n|\r/gm, ' ')}
|
|
|
</C.Text>
|
|
|
<C.Text cls="mt5 as-e" numberOfLines={1}>
|
|
|
- March 19
|
|
|
+ {playerData.date}
|
|
|
</C.Text>
|
|
|
</C.View>
|
|
|
</ScrollView>
|