Skip to content

fix(ios): resolve the drawer panel's theme from the shared store - #239

Open
johntrickett86 wants to merge 1 commit into
NativePHP:mainfrom
johntrickett86:fix/drawer-panel-theme
Open

johntrickett86 wants to merge 1 commit into
NativePHP:mainfrom
johntrickett86:fix/drawer-panel-theme

Conversation

@johntrickett86

Copy link
Copy Markdown

#79 moved the drawer panel to theme.background, read from \.nativeUITheme. Nothing but Xcode previews sets that environment value, so the panel always gets NativeUITokens.fallback (#F8FAFC) whatever the app's theme or colour scheme: near-white behind the status bar and below the rows in dark mode.

Every other renderer (e.g. NativeUIButtonRenderer) resolves the theme from NativeUITheme.shared for the current colour scheme. This does the same in NativeUIDrawerHost.

Not built or run on a simulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant