Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
lbry-react-native
Commits
33b4806c
Commit
33b4806c
authored
Mar 23, 2020
by
Akinwale Ariwodola
Browse files
add values to liteFile state
parent
7e1794ce
Pipeline
#1840
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
android
@
cbc4a662
Compare
5aa05133
...
cbc4a662
Subproject commit
5aa051332447a00c0b6586c31b34108f5c8c132d
Subproject commit
cbc4a662e670941b1c82aa6846ac56923c30af2f
src/page/liteFile/view.js
View file @
33b4806c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment