-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: adjust theme types to match internal and regular usage #3279
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
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 |
lukewalczak
left a comment
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 <lukasz.walczak.pwr@gmail.com>
Co-authored-by: Luke Walczak <lukasz.walczak.pwr@gmail.com>
|
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 |
lukewalczak
left a comment
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
useThemeright 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-paperinto their applicationsSummary
useInternalThemehook for internal usagewithInternalThemeHOC for internal usage@callstack/react-theme-providerto allow typing hooksTest plan
Due to the usage of global
index.d.tsfiles I had troubles with testing the implementation insideexamplefolder. My idea now is to create a separate app, includereact-native-paperfrom this branch and see if global theme overrides work properly