mirror of
https://github.com/status-im/react-native.git
synced 2025-02-22 22:28:09 +00:00
Duration cannot be less then 10ms (#21858)
Summary: Related to: #21853 Fixes #21853 Pull Request resolved: https://github.com/facebook/react-native/pull/21858 Differential Revision: D13322060 Pulled By: hramos fbshipit-source-id: 00a8de018fce6507aa131a11ba3e95d57044e683
This commit is contained in:
parent
f77aa4eb45
commit
87b6533937
@ -99,9 +99,10 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
|
|||||||
|
|
||||||
if (duration && easing) {
|
if (duration && easing) {
|
||||||
LayoutAnimation.configureNext({
|
LayoutAnimation.configureNext({
|
||||||
duration: duration,
|
// We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m
|
||||||
|
duration: duration > 10 ? duration : 10,
|
||||||
update: {
|
update: {
|
||||||
duration: duration,
|
duration: duration > 10 ? duration : 10,
|
||||||
type: LayoutAnimation.Types[easing] || 'keyboard',
|
type: LayoutAnimation.Types[easing] || 'keyboard',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user