Skip to content

Commit

Permalink
feat: export useTheme hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jshearer authored and satya164 committed Jul 12, 2019
1 parent c55e3dc commit 7e1d5cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/core/theming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ import { createTheming } from '@callstack/react-theme-provider';
import DefaultTheme from '../styles/DefaultTheme';
import { Theme } from '../types';

export const { ThemeProvider, withTheme } = createTheming<Theme>(DefaultTheme);
export const { ThemeProvider, withTheme, useTheme } = createTheming<Theme>(
DefaultTheme
);
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Theme = _Theme;

export { Colors };

export { withTheme, ThemeProvider } from './core/theming';
export { useTheme, withTheme, ThemeProvider } from './core/theming';

export { default as Provider } from './core/Provider';
export { default as DefaultTheme } from './styles/DefaultTheme';
Expand Down

0 comments on commit 7e1d5cd

Please sign in to comment.