Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ std::optional<float> findHeaderHeight(
}

jfloat headerHeight = env->CallFloatMethod(
packageInstance, computeDummyLayoutID, fontSize, isTitleEmpty, applyTopInset);
packageInstance,
computeDummyLayoutID,
fontSize,
isTitleEmpty,
applyTopInset);

return {headerHeight};
}
Expand All @@ -103,10 +107,11 @@ void RNSScreenShadowNode::appendChild(
headerConfigChild->getProps());

// The native CustomToolbar only pads itself with the top inset when
// `legacyTopInsetBehavior || consumeTopInset` holds (see CustomToolbar.kt).
// The dummy measurement must mirror that condition, otherwise the header
// height is over-reported by the top inset whenever a header opts out via
// `disableTopInsetApplication` (consumeTopInset == false).
// `legacyTopInsetBehavior || consumeTopInset` holds (see
// CustomToolbar.kt). The dummy measurement must mirror that condition,
// otherwise the header height is over-reported by the top inset whenever
// a header opts out via `disableTopInsetApplication` (consumeTopInset ==
// false).
const bool applyTopInset =
headerProps.legacyTopInsetBehavior || headerProps.consumeTopInset;

Expand Down
Loading