-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: adjust theme types to match internal and regular usage #3279
Conversation
@lukewalczak CircleCI tests fail due to missing implementation in |
7076433
to
ecf20ac
Compare
The mobile version of example app from this branch is ready! You can see it here |
The mobile version of example app from this branch is ready! You can see it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small grammar suggestion and adding useTheme
in example
Co-authored-by: Luke Walczak <[email protected]>
Co-authored-by: Luke Walczak <[email protected]>
The mobile version of example app from this branch is ready! You can see it here |
1 similar comment
The mobile version of example app from this branch is ready! You can see it here |
d205270
to
871a875
Compare
The mobile version of example app from this branch is ready! You can see it here |
The mobile version of example app from this branch is ready! You can see it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @Drakeoon 🔥!
During the development we came to the conclusion that
useTheme
right now has to serve too many roles - support two themes at the same time for internal components and later on support just one theme when used by developers includingreact-native-paper
into their applicationsSummary
useInternalTheme
hook for internal usagewithInternalTheme
HOC for internal usage@callstack/react-theme-provider
to allow typing hooksTest plan
Due to the usage of global
index.d.ts
files I had troubles with testing the implementation insideexample
folder. My idea now is to create a separate app, includereact-native-paper
from this branch and see if global theme overrides work properly