mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 09:21:09 +08: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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user