Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
于良
8 years ago
Commit
bb61e00b43cf24556b91e01ec445a2e69f8a7d11
1 parent
e94549ef
个人中心优化 review by liben
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
js/mine/components/mine/MineList.js
js/mine/components/mine/MineList.js
View file @
bb61e00
...
...
@@ -96,14 +96,18 @@ export default class MineList extends React.Component {
renderRow
=
{
this
.
_renderRow
}
renderHeader
=
{
this
.
_renderHeader
}
onScroll
=
{(
event
)
=>
{
// console.log('onScrollonScrollonScroll')
// console.log(event.nativeEvent.contentOffset.y)
ReactNative
.
NativeModules
.
YH_MineHelper
.
updateNavBarState
(
event
.
nativeEvent
.
contentOffset
.
y
);
if
(
Platform
.
OS
===
'ios'
&&
event
.
nativeEvent
.
contentOffset
.
y
<
-
60
)
{
}}
onScrollEndDrag
=
{(
event
)
=>
{
if
(
profile
.
uid
!=
'0'
&&
Platform
.
OS
===
'ios'
&&
event
.
nativeEvent
.
contentOffset
.
y
<
-
60
)
{
this
.
props
.
onMineCenterRefresh
&&
this
.
props
.
onMineCenterRefresh
();
}
}}
refreshControl
=
{
Platform
.
OS
===
'ios'
?
null
:
profile
.
uid
==
'0'
||
Platform
.
OS
===
'ios'
?
null
:
<
RefreshControl
refreshing
=
{
false
}
onRefresh
=
{()
=>
{
...
...
Please
register
or
login
to post a comment