Context - Zanegerous/CopperToGold GitHub Wiki
ThemeContext
This context provides the "dark mode state" as a boolean true or false value(IsDarkMode) , and a way to toggle it (toggleDarkMode).
ThemeProvider
Wraps the portions of the application that needs access to themes.
toggleDarkMode
flips IsDarkMode between true and false.
TextScaleContext
This context Provides the current text scale factor (fontScale) and a setter function (setFontScale). Where the default value for fontScale comes from PixelRatio.getFontScale().
TextScaleContextProps
fontScale - This is the current text scale factor setFontScale - This function is for updating the text scale factor.
TextScaleProvider
Wraps the portions of the applications you want the text scaling to apply to.