Skip to content

Commit

Permalink
Merge branch 'main' into @swm/navigation-refactor-minimal-action
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Jul 4, 2023
2 parents 8df6227 + a93c1a0 commit ab0ee18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/Navigation/NavigationRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ function NavigationRoot(props) {
const {updateCurrentReportID} = useCurrentReportID();
const {isSmallScreenWidth} = useWindowDimensions();

const prevStatusBarBackgroundColor = useRef(themeColors.appBG);
const statusBarBackgroundColor = useRef(themeColors.appBG);
const statusBarAnimation = useSharedValue(0);

useEffect(() => {
if (firstRenderRef.current) {
// we don't want to make the report back button go back to LHN if the user
Expand All @@ -76,6 +72,10 @@ function NavigationRoot(props) {
Navigation.setShouldPopAllStateOnUP();
}, [isSmallScreenWidth]);

const prevStatusBarBackgroundColor = useRef(themeColors.appBG);
const statusBarBackgroundColor = useRef(themeColors.appBG);
const statusBarAnimation = useSharedValue(0);

const updateStatusBarBackgroundColor = (color) => StatusBar.setBackgroundColor(color);
useAnimatedReaction(
() => statusBarAnimation.value,
Expand Down

0 comments on commit ab0ee18

Please sign in to comment.