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
578b5da157014cb57db0d91f13e76148efb8af1f
1 parent
c49ac295
修改 第三方键盘的bug review by zhanglixia
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
js/guang/components/detail/Detail.js
js/guang/components/detail/Detail.js
View file @
578b5da
...
...
@@ -81,20 +81,23 @@ export default class Detail extends Component {
}
_keyboardWillShow
(
e
){
let
endH
=
e
.
endCoordinates
.
height
;
let
duration
=
e
.
duration
;
Animated
.
timing
(
this
.
state
.
viewMarginTop
,
{
toValue
:
-
e
.
startCoordinates
.
height
,
duration
:
250
,
toValue
:
-
endH
,
duration
:
duration
,
}
).
start
();
}
_keyboardWillHide
(
e
){
let
duration
=
e
.
duration
;
Animated
.
timing
(
this
.
state
.
viewMarginTop
,
{
toValue
:
0
,
duration
:
250
,
duration
:
duration
,
}
).
start
();
}
...
...
Please
register
or
login
to post a comment