MM-16013 make paperplain animation faster (#2860)

This commit is contained in:
Elias Nahum 2019-06-05 11:06:29 -04:00
parent 5a471fd8e0
commit 2a8cf194cb
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -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();
}