code

useReRender

Forces the component to re-render.
Try tapping an arrow first and the button in the middle afterwards.
Notification bar's orientation and active states are stored in a useRef hook, which does not re-render the component when it changes.
The button in the middle forces a re-render, thus triggering the notification with its new orientation.
toprightleftbottom