Skip to content

Commit 87b6533

Browse files
Baldy Lukaszfacebook-github-bot
Baldy Lukasz
authored andcommittedDec 4, 2018
Duration cannot be less then 10ms (#21858)
Summary: Related to: #21853 Fixes #21853 Pull Request resolved: #21858 Differential Revision: D13322060 Pulled By: hramos fbshipit-source-id: 00a8de018fce6507aa131a11ba3e95d57044e683
1 parent f77aa4e commit 87b6533

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎Libraries/Components/Keyboard/KeyboardAvoidingView.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
9999

100100
if (duration && easing) {
101101
LayoutAnimation.configureNext({
102-
duration: duration,
102+
// We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m
103+
duration: duration > 10 ? duration : 10,
103104
update: {
104-
duration: duration,
105+
duration: duration > 10 ? duration : 10,
105106
type: LayoutAnimation.Types[easing] || 'keyboard',
106107
},
107108
});

0 commit comments

Comments
 (0)