HeaderBackButton animation performance (#3305)

* header back button ripple animation performance

* replace InteractionManager with requestAnimationFrame

* getting used to flow typing
This commit is contained in:
Michael Duminy 2018-01-24 00:03:51 +02:00 committed by Brent Vatne
parent 1715513519
commit 276249c4c7

View File

@ -100,7 +100,9 @@ class Header extends React.PureComponent<Props, State> {
}
_navigateBack = () => {
this.props.navigation.goBack(null);
requestAnimationFrame(() => {
this.props.navigation.goBack();
});
};
_renderTitleComponent = (props: SceneProps): ?React.Node => {