Skip to content

Commit 22d67bc

Browse files
michalchudziaksouhe
authored andcommitted
Export ThemeContext (#60)
We'd like to use ThemeContext in order to work with `ThemeContext.Consumer` component, as well as `static contextType = ThemeContext`. Which is not possible with the current implementation.
1 parent df3a7ba commit 22d67bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/createTheming.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default function createTheming<T: Object>(
4141
};
4242

4343
return {
44+
ThemeContext,
4445
ThemeProvider,
4546
withTheme,
4647
useTheme,

0 commit comments

Comments
 (0)