Skip to content

Commit

Permalink
⚡️ switch to default config to fix type errors for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-bierman committed Dec 21, 2024
1 parent b0b9432 commit 85bd527
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/ui/src/tamagui.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { createAnimations } from '@tamagui/animations-react-native';
import { config as defaultTamaguiConfig } from '@tamagui/config/v3';
import { createInterFont } from '@tamagui/font-inter';
import { createMedia } from '@tamagui/react-native-media-driver';
import { shorthands } from '@tamagui/shorthands';
import { themes, tokens } from '@tamagui/themes/v2';
import { createTamagui } from 'tamagui';

// CUSTOM CONFIG

// Define fonts using createInterFont
const headingFont = createInterFont({
size: {
Expand Down Expand Up @@ -72,7 +75,7 @@ const animations = createAnimations({
});

// Create Tamagui config
export const config = createTamagui({
export const customConfig = createTamagui({
defaultTheme: 'dark',
defaultFont: 'body',
shouldAddPrefersColorThemes: true,
Expand Down Expand Up @@ -109,5 +112,13 @@ export const config = createTamagui({
animations,
});

// DEFAULT CONFIG
export const defaultConfig = createTamagui(defaultTamaguiConfig);

// Handle export for either config
const effectiveConfig = defaultConfig;

export const config = effectiveConfig;

// for the compiler to find it
export default config;

0 comments on commit 85bd527

Please sign in to comment.