mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 09:08:15 +00:00
HeaderBackButton animation performance (#3305)
* header back button ripple animation performance * replace InteractionManager with requestAnimationFrame * getting used to flow typing
This commit is contained in:
parent
1715513519
commit
276249c4c7
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user