-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34409 from ishpaul777/fix/status-bar-color-on-mweb
Fix/status bar color on mweb
- Loading branch information
Showing
7 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
src/components/CustomStatusBarAndBackground/CustomStatusBarAndBackgroundContext.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import {createContext} from 'react'; | ||
|
||
type CustomStatusBarAndBackgroundContextType = { | ||
isRootStatusBarDisabled: boolean; | ||
disableRootStatusBar: (isDisabled: boolean) => void; | ||
isRootStatusBarEnabled: boolean; | ||
setRootStatusBarEnabled: (isEnabled: boolean) => void; | ||
}; | ||
|
||
const CustomStatusBarAndBackgroundContext = createContext<CustomStatusBarAndBackgroundContextType>({isRootStatusBarDisabled: false, disableRootStatusBar: () => undefined}); | ||
// Signin page has its seperate Statusbar and ThemeProvider, so when user is on the SignInPage we need to disable the root statusbar so there is no double status bar in component stack, first in Root and other in SignInPage | ||
const CustomStatusBarAndBackgroundContext = createContext<CustomStatusBarAndBackgroundContextType>({isRootStatusBarEnabled: true, setRootStatusBarEnabled: () => undefined}); | ||
|
||
export default CustomStatusBarAndBackgroundContext; | ||
export {type CustomStatusBarAndBackgroundContextType}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import colors from '@styles/theme/colors'; | ||
|
||
function getSplashBackgroundColor() { | ||
return colors.green400; | ||
} | ||
|
||
export default getSplashBackgroundColor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import colors from '@styles/theme/colors'; | ||
|
||
function getSplashBackgroundColor() { | ||
return colors.productDark100; | ||
} | ||
|
||
export default getSplashBackgroundColor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters