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 {
player = null;
startTime = null;
state = {
channelName: null,
channelUrl: null,
title: null,
fileViewLogged: false,
fullscreenMode: false,
playbackStarted: false,
playerHeight: null,
isLandscape: false,
sdkReady: false, // TODO: progressively enable features (e.g. tip) when sdk is ready
showRecommended: false,
title: null,
viewCount: 0,
};
......@@ -127,6 +131,10 @@ class LiteFilePage extends React.PureComponent {
);
};
componentDidMount() {
this.startTime = Date.now();
}
componentDidUpdate() {
const { navigation } = this.props;
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