The name I matched to initialWindowMetrics that is exported. The hook name is kind of long.
This offers a way for users to get the latest window metrics.
Usage:
const getLatestWindowMetrics = useSafeAreaGetLatestWindowMetrics();
// getLatestWindowMetrics is now stable and can be used in effects, worklets, etc, without worrying to re-render.
Test Plan
Just a proposal for now. If accepted will add tests.
Summary
The name I matched to
initialWindowMetrics
that is exported. The hook name is kind of long.This offers a way for users to get the latest window metrics.
Usage:
Test Plan
Just a proposal for now. If accepted will add tests.