MM-16013 make paperplain animation faster (#2860)
This commit is contained in:
parent
ca2edc2143
commit
89c2e66dfd
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import React, {PureComponent} from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import {Animated} from 'react-native';
|
||||
|
||||
export const FADE_DURATION = 300;
|
||||
export const FADE_DURATION = 100;
|
||||
|
||||
export default class Fade extends PureComponent {
|
||||
static propTypes = {
|
||||
|
|
@ -28,6 +28,7 @@ export default class Fade extends PureComponent {
|
|||
{
|
||||
toValue: prevProps.visible ? 0 : 1,
|
||||
duration: FADE_DURATION,
|
||||
useNativeDriver: true,
|
||||
}
|
||||
).start();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue