Skip to content

Commit 1936e0a

Browse files
committed
refactor: simplify component exports using barrel pattern
Replace individual component exports with wildcard export from components index, and reorganize TAILWIND_COLORS export placement.
1 parent bc463e8 commit 1936e0a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export { generateStyleKey } from "./utils/styleKey";
1515
export type { StyleObject } from "./types/core";
1616
export type { NativeStyle, TwStyle } from "./types/runtime";
1717

18+
// Re-export colors
19+
export { TAILWIND_COLORS } from "./config/tailwind";
20+
1821
// Re-export individual parsers for advanced usage
1922
export {
2023
parseAspectRatio,
@@ -39,8 +42,4 @@ export { SPACING_SCALE } from "./parser/spacing";
3942
export { FONT_SIZES, LETTER_SPACING_SCALE } from "./parser/typography";
4043

4144
// Re-export enhanced components with modifier support
42-
export { Pressable } from "./components/Pressable";
43-
export type { PressableProps } from "./components/Pressable";
44-
export { TextInput } from "./components/TextInput";
45-
export type { TextInputProps } from "./components/TextInput";
46-
export { TAILWIND_COLORS } from "./config/tailwind";
45+
export * from "./components";

0 commit comments

Comments
 (0)