Commit 33b4806c authored by Akinwale Ariwodola's avatar Akinwale Ariwodola
Browse files

add values to liteFile state

parent 7e1794ce
Pipeline #1840 passed with stage
Subproject commit 5aa051332447a00c0b6586c31b34108f5c8c132d Subproject commit cbc4a662e670941b1c82aa6846ac56923c30af2f
...@@ -38,15 +38,19 @@ class LiteFilePage extends React.PureComponent { ...@@ -38,15 +38,19 @@ class LiteFilePage extends React.PureComponent {
player = null; player = null;
startTime = null;
state = { state = {
channelName: null, channelName: null,
channelUrl: null, channelUrl: null,
title: null, fileViewLogged: false,
fullscreenMode: false, fullscreenMode: false,
playbackStarted: false,
playerHeight: null, playerHeight: null,
isLandscape: false, isLandscape: false,
sdkReady: false, // TODO: progressively enable features (e.g. tip) when sdk is ready sdkReady: false, // TODO: progressively enable features (e.g. tip) when sdk is ready
showRecommended: false, showRecommended: false,
title: null,
viewCount: 0, viewCount: 0,
}; };
...@@ -127,6 +131,10 @@ class LiteFilePage extends React.PureComponent { ...@@ -127,6 +131,10 @@ class LiteFilePage extends React.PureComponent {
); );
}; };
componentDidMount() {
this.startTime = Date.now();
}
componentDidUpdate() { componentDidUpdate() {
const { navigation } = this.props; const { navigation } = this.props;
const { uri } = navigation.state.params; const { uri } = navigation.state.params;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment