Is it possible to show/hide the bars programmatically? #44
Closed
fredrikburmester
started this conversation in
General
Replies: 1 comment 2 replies
-
@fredrikburmester Sure (for the programmatically part), if you prefer a hook or something similar: const useHideSystemBars = (hidden: boolean) => {
useEffect(() => {
const entry = SystemBars.pushStackEntry({ hidden });
return () => {
SystemBars.popStackEntry(entry);
};
}, [hidden]);
}; Usage: useHideSystemBars(true);
useHideSystemBars(false); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I would like to hide/show the top/bottom bars with say an async hook or similar. The goal is to delay rendering of my components until the bars have disappeared.
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions