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
shixiang
8 years ago
Commit
ca6d085d76cc945ccad6625ab9e56f9f1df9572f
1 parent
597eb7b2
修改动画类型
review 草莓
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
js/classify/components/category/CategoryList.js
js/classify/components/category/CategoryList.js
View file @
ca6d085
...
...
@@ -33,9 +33,9 @@ export default class CategoryList extends Component {
}
componentWillMount
()
{
// Animate creation
LayoutAnimation
.
configureNext
(
LayoutAnimation
.
Presets
.
spring
);
LayoutAnimation
.
configureNext
(
LayoutAnimation
.
Presets
.
easeInEaseOut
);
}
componentWillUpdate
(
nextProps
,
nextState
){
if
(
this
.
cacheChannel
!=
nextProps
.
currentChannelId
){
this
.
setState
({
offsetx
:
0
});
...
...
@@ -45,7 +45,7 @@ export default class CategoryList extends Component {
_pressLeftRow
(
value
,
rowID
){
this
.
props
.
pressLeftRow
(
value
,
rowID
);
if
(
rowID
==
this
.
props
.
currentCateId
){
LayoutAnimation
.
configureNext
(
LayoutAnimation
.
Presets
.
spring
);
LayoutAnimation
.
configureNext
(
LayoutAnimation
.
Presets
.
easeInEaseOut
);
if
(
this
.
state
.
offsetx
<
0
){
this
.
setState
({
offsetx
:
0
});
}
else
{
...
...
Please
register
or
login
to post a comment