Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move theming to core and pass theme to options #11707

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

satya164
Copy link
Member

This moves theming logic to @react-navigation/core. So we can now pass the theme to the options and screenOptions callbacks. As options often specifies UI elements and styles, it's nice to have theme available there.

Copy link

netlify bot commented Nov 20, 2023

Deploy Preview for react-navigation-example ready!

Name Link
🔨 Latest commit 2a6a011
🔍 Latest deploy log https://app.netlify.com/sites/react-navigation-example/deploys/655b24cdc019fd00087ac350
😎 Deploy Preview https://deploy-preview-11707--react-navigation-example.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d718b71) 75.95% compared to head (2a6a011) 75.96%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11707      +/-   ##
==========================================
+ Coverage   75.95%   75.96%   +0.01%     
==========================================
  Files         207      207              
  Lines        5939     5942       +3     
  Branches     2301     2302       +1     
==========================================
+ Hits         4511     4514       +3     
  Misses       1378     1378              
  Partials       50       50              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@satya164 satya164 requested a review from osdnk November 20, 2023 03:19
This moves theming logic to `@react-navigation/core`.
So we can now pass the `theme` to the `options` and `screenOptions` callbacks.
As `options` often specifies UI elements and styles, it's nice to have theme available there.
@satya164 satya164 merged commit 8e7ac4f into main Nov 20, 2023
@satya164 satya164 deleted the @satya164/theming branch November 20, 2023 18:44
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.

3 participants