mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-16 10:39:50 +08:00
do not reset layout state if they are the same in NavigationTransitioner
Reviewed By: fred2028 Differential Revision: D3773370 fbshipit-source-id: 7999cada80361b68f77f2433c6d2194ee6d26c73
This commit is contained in:
committed by
Facebook Github Bot 0
parent
ea3bb35db0
commit
dadfe40f55
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user