Permalink
Browse files

do not reset layout state if they are the same in NavigationTransitioner

Reviewed By: fred2028

Differential Revision: D3773370

fbshipit-source-id: 7999cada80361b68f77f2433c6d2194ee6d26c73
  • Loading branch information...
1 parent ea3bb35 commit dadfe40f55f0fc21e833e36ac2ad67ec4160af25 Chace Liang committed with Facebook Github Bot 0 Aug 26, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 Libraries/NavigationExperimental/NavigationTransitioner.js
@@ -187,7 +187,10 @@ class NavigationTransitioner extends React.Component<any, Props, State> {
_onLayout(event: any): void {
const {height, width} = event.nativeEvent.layout;
-
+ if (this.state.layout.initWidth === width &&
+ this.state.layout.initHeight === height) {
+ return;
+ }
const layout = {
...this.state.layout,
initHeight: height,

0 comments on commit dadfe40

Please sign in to comment.