Skip to content

Commit

Permalink
bring back setnavigationbarcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
gkartalis committed Oct 28, 2024
1 parent 7ffb7bb commit cb5cd71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/utils/useAndroidAppStyling.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { ArtsyNativeModule } from "app/NativeModules/ArtsyNativeModule"
import {
ArtsyNativeModule,
DEFAULT_NAVIGATION_BAR_COLOR,
} from "app/NativeModules/ArtsyNativeModule"
import { GlobalStore } from "app/store/GlobalStore"
import { useEffect } from "react"
import { Platform } from "react-native"
Expand All @@ -15,6 +18,7 @@ export const useAndroidAppStyling = () => {
}

if (isLoggedIn && Platform.OS === "android") {
ArtsyNativeModule.setNavigationBarColor(DEFAULT_NAVIGATION_BAR_COLOR)
ArtsyNativeModule.setAppLightContrast(false)
}
}, 500)
Expand Down

0 comments on commit cb5cd71

Please sign in to comment.