Skip to content

Commit

Permalink
add useHeaderHeight hook to Elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddy03h committed Oct 20, 2024
1 parent 9683e14 commit f7c6190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Elements.res
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ module HeaderBackButton = {
~onPress: unit => unit,
) => React.element = "HeaderBackButton"
}

@module("@react-navigation/elements")
external useHeaderHeight: unit => float = "useHeaderHeight"

0 comments on commit f7c6190

Please sign in to comment.