mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 12:25:21 +08:00
fix: compare with correct height when floating header height updates
This commit is contained in:
@@ -338,9 +338,9 @@ export default class CardStack extends React.Component<Props, State> {
|
||||
height: number;
|
||||
}) => {
|
||||
this.setState(({ floatingHeaderHeights }) => {
|
||||
const previousHeight = this.state.floatingHeaderHeights[route.key];
|
||||
const previousHeight = floatingHeaderHeights[route.key];
|
||||
|
||||
if (previousHeight && previousHeight === height) {
|
||||
if (previousHeight === height) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user