MM-16013 make paperplain animation faster (#2860)

This commit is contained in:
Elias Nahum 2019-06-05 11:06:29 -04:00 committed by GitHub
parent ca2edc2143
commit 89c2e66dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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