Skip to content

Commit

Permalink
fix non-exported style fn, documented in readme
Browse files Browse the repository at this point in the history
jaredh159 committed Nov 29, 2023
1 parent 825b6c3 commit 193a037
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { Platform } from 'react-native';
import { TailwindFn, RnColorScheme } from './types';
import { TwConfig } from './tw-config';
import type { TailwindFn, RnColorScheme, ClassInput, Style } from './types';
import type { TwConfig } from './tw-config';
import plugin from './plugin';
import rawCreate from './create';

// Apply default config and inject RN Platform
const create = (twConfig: TwConfig = {}): TailwindFn => rawCreate(twConfig, Platform.OS);

export { create, plugin };
export type { TailwindFn, TwConfig, RnColorScheme };
export type { TailwindFn, TwConfig, RnColorScheme, ClassInput, Style };
export { useDeviceContext, useAppColorScheme } from './hooks';

const tailwind = create();
const style = tailwind.style;

export default tailwind;

export { create, plugin, style };

0 comments on commit 193a037

Please sign in to comment.